get_historical_data
Retrieve historical OHLCV bars for any symbol, with configurable duration and bar size.
Instructions
Historical OHLCV bars.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "get_historical_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker symbol or numeric conId | |
| bar_size | No | e.g. '1 day', '1 hour', '5 mins' | 1 day |
| currency | No | USD | |
| duration | No | IB duration string, e.g. '5 D', '1 M', '1 Y' | 1 M |
| exchange | No | SMART | |
| max_bars | No | ||
| sec_type | No | STK | |
| what_to_show | No | TRADES, MIDPOINT, BID, ASK | TRADES |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |