get_historical_bars
Retrieve historical OHLCV bars for any symbol, specifying duration, bar size, and exchange to analyze past price trends and patterns.
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_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| use_rth | No | ||
| bar_size | No | 1 min | |
| currency | No | USD | |
| duration | No | 1 D | |
| exchange | No | SMART | |
| sec_type | No | STK | |
| end_datetime | No | ||
| what_to_show | No | TRADES | |
| primary_exchange | No |