API Reference

This event is emitted when a trigger order is created or updated (not deleted)

struct TriggerOrder { 
    address trader;
    address amm;
    uint256 trigger;
    uint256 size;
    uint256 quoteLimit;
    bool takeProfit;
}

event TriggerOrderUpdated(uint256 indexed id, address indexed amm, address indexed trader, TriggerOrder order);

params

  • id order id
  • amm amm address
  • trader trader address
  • order
    • trader trader address
    • amm amm address
    • trigger order price
    • size size to execute
    • quoteLimit min output of quote expected (slippage setting, 0 for any)
    • takeProfit whether a take profit order (false for stop-loss)