Create multiple limit orders in one tx
struct LimitOrder {
address trader;
address amm;
uint8 side;
uint trigger;
uint quoteAmount;
uint leverage;
bool reduceOnly;
};
function createLimitOrderBatch(LimitOrder[] calldata orders) external;
params
tradertrader addressammamm addressside0 (long), 1 (short)triggerlimit order price (wei)quoteAmountmargin amount (wei)leverageleverage (wei)reduceOnlywhether limit order should only reduce position
