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.
Input Schema
TableJSON 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": {}}, ),