API Reference
struct LimitOrder {
    address trader;
    IAMM amm;
    Side side;
    uint256 trigger;
    uint256 quoteAmount; 
    uint256 leverage;
    bool reduceOnly;
}

function updateLimitOrderBatch(uint256[] calldata ids, LimitOrder[] calldata _orders) external;

params

  • trader trader address
  • amm amm address
  • side 0 (long), 1 (short)
  • trigger limit order price (wei)
  • quoteAmount margin amount (wei)
  • leverage leverage (wei)
  • reduceOnly whether limit order should only reduce position