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.
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": {
"instrument": "<instrument>",
"bar_size": "<bar_size>",
"duration": "<duration>"
},
"name": "get_historical_bars"
}
}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. |