get_historical_data
Retrieve historical OHLCV bars for any symbol, with configurable duration and bar size.
Instructions
Historical OHLCV bars.
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 |