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
Two status codes are possible. The order and cancel family — On a 202 the per-item outcome arrives on the
order, cancel, cancelByCloid, cancelAll, and modify — may answer with HTTP 200 carrying the result shown below, or HTTP 202 acknowledging the request for asynchronous processing:orderUpdates channel instead. Handle both — do not assume only one will occur.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.