cancel_all_orders
Cancel all open trading orders through the Interactive Brokers API. This tool removes pending trade requests to manage positions and prevent unwanted executions.
Instructions
Cancel all open orders.
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 |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/ib_async_mcp/server.py:662-664 (handler)The handler implementation for the cancel_all_orders tool, which calls ib.reqGlobalCancel().
if name == "cancel_all_orders": ib.reqGlobalCancel() return {"status": "cancel_all_requested"} - src/ib_async_mcp/server.py:283-287 (registration)The registration of the cancel_all_orders tool with its description and schema.
Tool( name="cancel_all_orders", description="Cancel all open orders.", inputSchema={"type": "object", "properties": {}}, ),