get_fills
Retrieve order execution details and trade confirmations from Interactive Brokers to monitor transaction history and track trade outcomes.
Instructions
Get order fills.
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": "get_fills"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/ib_async_mcp/server.py:687-697 (handler)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] - src/ib_async_mcp/server.py:303-307 (registration)The registration of the 'get_fills' tool in the tool list.
Tool( name="get_fills", description="Get order fills.", inputSchema={"type": "object", "properties": {}}, ),