ibkr_historical_bars
Retrieve OHLCV historical bars for any ticker symbol using configurable duration, bar size, and data type. Supports regular trading hours filtering.
Instructions
Get OHLCV historical bars for a symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker symbol (e.g. "AAPL", "SPY") | |
| use_rth | No | Regular trading hours only (default true) | |
| bar_size | No | Bar size: "1 min", "5 mins", "1 hour", "1 day", "1 week" | 1 day |
| duration | No | Lookback period in IB format: "1 D", "1 W", "1 M", "1 Y" | 1 M |
| what_to_show | No | Data type: "TRADES", "MIDPOINT", "BID", "ASK" | TRADES |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |