struct LimitOrder {
address trader;
IAMM amm;
Side side;
uint256 trigger;
uint256 quoteAmount;
uint256 leverage;
bool reduceOnly;
}
function updateLimitOrder(uint256 id, LimitOrder memory order) external;
params
trader
trader addressamm
amm addressside
0 (long), 1 (short)trigger
limit order price (wei)quoteAmount
margin amount (wei)leverage
leverage (wei)reduceOnly
whether limit order should only reduce position