Skip to main content
Coming soon: order placement over WebSocket becomes available on September 2, 2026, on the global platform only. The EU platform is not yet supported.
Withdraw every order the authorized account holds on one market, filtered by trading type. This is the kill-switch call for a shutdown sequence or an emergency stop.

Rate limits

Cancel all orders

Request parameters

One market per call — no all-markets form exists, so flattening an entire book of activity means looping over the markets in use. Passing all three trading types is safe on any market, because types that do not apply are simply not matched.

Response

The result is an empty object. No list of canceled orders comes back, and nothing matched is not an error — an empty result is indistinguishable from a market that held no orders. Re-query pending orders, or watch Orders Pending, to confirm what was actually withdrawn.
Positions survive. This call covers resting and conditional orders on the market; an open position remains open, and only the orders protecting it are gone. Re-arm stops after a bulk cancel — see collateral_order_tpsl_place for position-tracking protection.

Error codes

Standard transport errors and the shared account, rate-limit, and region codes are listed in Order Management.