Get OHLCV candles
tv_historyFetch historical open, high, low, close, and volume candles for any trading instrument, with optional interval and adjustment settings. Returns data oldest-first with timestamps.
Instructions
Historical open/high/low/close/volume candles for one instrument. Served from TradingView's chart feed, falling back to the licensed provider. Returns candles oldest-first with both epoch seconds and ISO timestamps (UTC).
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": "tv_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | Number of most-recent candles | |
| symbol | Yes | Instrument, bare or qualified | |
| interval | No | Candle size | 1D |
| adjustment | No | Price adjustment basis (TradingView path only) | splits |