Skip to main content
The cancelAll action removes all open orders — both limit and conditional (take-profit / stop-loss) — for a specified contract in a single signed request. Use this when you need to flatten your order book exposure for a contract quickly without tracking individual order IDs.

Endpoint

Request Body

Action Fields

string
required
Fixed value: "cancelAll".
int32
required
asset — The integer contract ID for which all open orders should be cancelled. Only orders on this contract are affected; orders on other contracts remain untouched.

Response

Response Fields

int
The number of resting limit orders that were cancelled for the specified contract.
int
The number of conditional orders (take-profit and stop-loss) that were cancelled for the specified contract.
If there are no open orders for the contract, the call still succeeds and both counts will be 0. This makes cancelAll safe to call defensively at the start of a session or strategy reset.
cancelAll is scoped to a single contract per request. To cancel all orders across multiple contracts, send one cancelAll request per contract, each with its own signed nonce.