Skip to main content
All trading actions are batched via Controller.execute. For each item in actionList you provide an ABI‑encoded params struct in paramsDataList.

CANCEL (full or partial)

The CANCEL action allows you to cancel an open limit order, either fully or partially. leftQuoteAmount is the remaining quote you want after cancellation (0 for full cancellation).

CancelOrderParams struct

Example

Parameters

  • id: The order ID
  • leftQuoteAmount: The amount of quote tokens you want to remain in the order after cancellation
    • Set to 0 for full cancellation
    • Set to a positive value for partial cancellation (the difference will be returned to your vault)

Partial cancellation example