tv_get_ohlcv
Extract open, high, low, close, and volume (OHLCV) bars from the active TradingView chart for analysis and backtesting. Read-only retrieval using the chart widget API with a fallback to DOM scraping.
Instructions
Extract OHLCV bars from the active TradingView chart. Best-effort via the widget API, with a DOM fallback. Read-only.
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": "tv_get_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxBars | No | Maximum bars to return (default 500). |