Skip to main content
Glama
nadavgb-atom

ib-async-mcp

by nadavgb-atom

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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"}
  • 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": {}},
    ),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nadavgb-atom/ib-async-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server