cancel_all_orders
Cancel every open order on the authenticated account, optionally limited to one market. Requires confirm: true to prevent accidental mass cancellation.
Instructions
Cancel ALL of the authenticated account's open orders, optionally scoped to one market with market_id. Destructive: you must pass confirm: true, so a stray or argless call can't mass-cancel by accident. To cancel a single order use cancel_order. Requires API credentials.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cancel_all_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually cancel (guards against typos). | |
| market_id | No | Scope the cancel to one market. Omit to cancel across all markets. |