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


function updateTriggerOrder(uint256 id, TriggerOrder calldata order) external;

params

  • trader trader address
  • amm amm address
  • trigger trigger price (wei)
  • size size to close (wei)
  • quoteLimit expected output from the trade (wei) (used for slippage setting, use 0 for any slippage)
  • takeProfit whether a take profit order. (default: false, for stop loss)