get_history
Fetch historical OHLCV data from TradingView for any symbol, with options for timeframe, bar count, and price adjustment.
Instructions
Get historical candlestick/OHLCV (Open, High, Low, Close, Volume) chart data for a TradingView symbol.
Resolution Options:
"1","5","15","30"(Minutes)"60","240"(Hours)"1D"(Daily - Default)"1W","1M"(Weekly, Monthly)
Adjustment Options:
"splits"(default - splits adjusted)"dividends"(splits + dividends adjusted)"none"(raw unadjusted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | The TradingView symbol, e.g. "NASDAQ:AAPL", "CME_MINI:NQ1!". | |
| timeframe | No | Optional timeframe constraint, e.g. "1D", "60" (minutes). | |
| resolution | No | Candlestick bar resolution, e.g. "1D" (default), "1", "5", "60", "240". | 1D |
| count | No | Number of bars to fetch (e.g. 50, 100, defaults to 100). | |
| adjustment | No | Price adjustment strategy, e.g. "splits" (default), "dividends", "none". | splits |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |