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).
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 |