get_trade_history
Retrieve historical executed trades from Interactive Brokers using a Flex query and local archive. Filter by symbol, date range, or row limit.
Instructions
Historical executed trades from the configured Flex query (up to its period, plus everything previously archived locally). Needs IBKR_FLEX_QUERY_ID + token; see README.
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_trade_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Only last N days; 0 = all | |
| symbol | No | Filter by symbol; empty for all | |
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |