Cancel all pending orders for an account (keeps live position protection)
Cancels every pending (working) order for the specified account in one operation. Filled orders are not affected.
Protective exits are kept: working take-profit/stop-loss legs that protect a contract with an OPEN position are NOT cancelled — “cancel all” clears resting entry exposure without stripping a live position’s protection. To remove a position’s TP/SL, cancel those orders individually or close the position.
Useful as a “panic cancel” to clear all limit/stop exposure without closing positions.
Returns a command acceptance. Actual cancellations are processed asynchronously and confirmed via WebSocket OrderCancelled events.
Requires x-idempotency-key header.
Body
Account action request
Used for bulk operations like cancel-all-orders and close-all-positions.
Example
UUID of the trading account
"550e8400-e29b-41d4-a716-446655440000"
Related topics
ChangelogFlatten account: close positions and cancel ordersClose all open positions for an accountCancel a pending orderGet all orders (filled, pending, cancelled)