cancel_all_orders
Cancel all open orders for a subaccount in the Derive MCP server. Optionally filter by currency or instrument to manage trading positions.
Instructions
Cancel all open orders for a subaccount. Optionally filter by currency or instrument. Requires authentication.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subaccount_id": "<subaccount_id>"
},
"name": "cancel_all_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subaccount_id | Yes | Subaccount ID | |
| currency | No | Filter by currency (optional) | |
| instrument_name | No | Filter by instrument (optional) |