Skip to main content
Glama
nadavgb-atom

ib-async-mcp

by nadavgb-atom

get_fills

Retrieve order execution details and trade confirmations from Interactive Brokers to monitor transaction history and track trade outcomes.

Instructions

Get order fills.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'get_fills' tool, which fetches fills from IB and serializes them into a list of dictionaries.
    if name == "get_fills":
        fills = ib.fills()
        return [{
            "symbol": f.contract.symbol,
            "exec_id": f.execution.execId,
            "side": f.execution.side,
            "shares": f.execution.shares,
            "price": f.execution.price,
            "time": f.time.isoformat() if f.time else None,
            "commission": f.commissionReport.commission if f.commissionReport else None,
        } for f in fills]
  • The registration of the 'get_fills' tool in the tool list.
    Tool(
        name="get_fills",
        description="Get order fills.",
        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