data_get_ohlcv
Retrieve historical OHLCV bar data for any TradingView symbol and timeframe. Customize start/end timestamps or bar count (max 500).
Instructions
Get 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": "data_get_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End timestamp (ms) | |
| from | No | Start timestamp (ms) | |
| count | No | Max bars (max 500) | |
| symbol | Yes | TradingView symbol | |
| timeframe | No | Timeframe (1m, 5m, 1h, etc.) |