Create a limit order on the orderbook!
struct LimitOrder {
address trader;
address amm;
uint8 side;
uint trigger;
uint quoteAmount;
uint leverage;
bool reduceOnly;
};
function createLimitOrder(LimitOrder calldata order) external;
params
trader
trader addressamm
amm addressside
0 (long), 1 (short)trigger
limit order price (wei)quoteAmount
margin (wei)leverage
leverage (wei)reduceOnly
whether limit order should only reduce position