API Reference

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

  • 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