private/advanced/cancel-all-orders
POSTCancels all OTO/OTOCO orders for a particular instrument/pair (asynchronous)./private/advanced/cancel-all-orders
This call is asynchronous, so the response is simply a confirmation of the request.
The user.advance.order subscription can be used to check when the order is successfully canceled.
Request
Body
required
- ➖ private/cancel-all-orders: LIMIT, ALL
- ➖ private/advanced/cancel-all-orders: LIMIT, TRIGGER, ALL. For LIMIT, only the legs from advanced orders will be in-scope.
Request id (echoed in response)
Must be "private/advanced/cancel-all-orders"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
e.g. BTC_USD. If not provided, the OTO/OTOCO orders of ALL instruments will be canceled. Required when position_type is specified.
Possible values: [LIMIT, TRIGGER, ALL]
Allowed values depend on operation:
Possible values: [CROSS_MARGIN, ISOLATED_MARGIN]
Derivatives only. One of CROSS_MARGIN, ISOLATED_MARGIN. When set, only advanced orders tied to the specified position type on the given instrument_name are cancelled. Requires instrument_name when set. Cannot be combined with type=LIMIT or type=TRIGGER.
Schema
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
Present when code !== 0.
Present when code !== 0.