Capture a TradingView chart for an exact date range
tradingview_capture_periodCapture a TradingView chart for a specified symbol and date range, returning the chart as a PNG image.
Instructions
Open an official TradingView symbol and interval, use the Supercharts Custom range control for the requested YYYY-MM-DD dates, and return the resulting chart as a PNG in one call. The browser closes by default and authentication remains local.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last visible calendar date, in YYYY-MM-DD format. | |
| from | Yes | First visible calendar date, in YYYY-MM-DD format. | |
| width | No | ||
| height | No | ||
| symbol | Yes | TradingView symbol, preferably EXCHANGE:TICKER such as NASDAQ:AAPL. | |
| interval | No | D | |
| layoutId | No | ||
| chartOnly | No | ||
| keepBrowserOpen | No |