get_ohlcv
Retrieve OHLCV candle data loaded in a TradingView chart: time, open, high, low, close, volume. Specify number of bars or chart index to get recent market data for analysis.
Instructions
Get OHLCV candle data (time, open, high, low, close, volume) currently loaded in a TradingView chart. Time is a unix timestamp in seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of most recent bars to return. Default: 100 | |
| chart_index | No | Chart index in a multi-chart layout. Default: the active chart |