Get Historical Bars
get_historical_barsRetrieve historical OHLCV bars for a fully specified instrument, choosing bar size, duration, and regular trading hours to analyze past price action.
Instructions
Get historical OHLCV bars for a fully specified instrument.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar_size | Yes | ||
| duration | Yes | ||
| rth_only | No | ||
| instrument | Yes | ||
| what_to_show | No | TRADES |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | Historical bars. | |
| symbol | Yes | Symbol requested. | |
| barCount | Yes | Number of bars returned. |