This event is emitted when a trigger order is created or updated (not deleted)
struct TriggerOrder {
address trader;
address amm;
uint256 trigger;
uint256 size;
uint256 quoteLimit;
bool takeProfit;
}
event TriggerOrderUpdated(uint256 indexed id, address indexed amm, address indexed trader, TriggerOrder order);
params
id
order idamm
amm addresstrader
trader addressorder
trader
trader addressamm
amm addresstrigger
order pricesize
size to executequoteLimit
min output of quote expected (slippage setting,0
for any)takeProfit
whether a take profit order (false for stop-loss)