LimitOrderUpdated
event emits when a limit order is created or updated. (not deleted)
struct LimitOrder {
address trader;
address amm;
Side side;
uint256 trigger;
uint256 quoteAmount;
uint256 leverage;
bool reduceOnly;
}
event LimitOrderUpdated(uint256 indexed id, address indexed amm, address indexed trader, LimitOrder order);
params
id
order idamm
amm addresstrader
trader addressorder
trader
trader addressamm
amm addressside
order side (0 for long, 1 for short)trigger
order pricequoteAmount
order amount (collateral)leverage
leveragereduceOnly
whether the order should only reduce position.