Actions21
- Alert Actions
- News Actions
- Chart Actions
- Screener Actions
- Symbol Actions
- Pine Script Actions
- Social Actions
- Analysis Actions
Chart → Export
AI-generatedSummary
Export chart data for a specified trading symbol and timeframe in a chosen format.
Inputs
- Authentication (required) — Selects method to authenticate with TradingView API: Email & Password or OAuth2.
- Symbol (required) — Trading symbol to export chart data for (e.g., BTCUSD, AAPL, EURUSD). Defaults to BTCUSD.
- Timeframe (required) — Selects the timeframe of chart data to export, such as 1 Minute, 5 Minutes, 1 Hour, 1 Day, etc. Defaults to 1 Hour.
- Options — Additional options including enabling AI analysis of the chart data, storing results in MongoDB, caching results in Redis, and setting cache TTL and connection strings.
Output shape
A JSON object containing the exported chart data, including the symbol, timeframe, export format, data array, and a timestamp.
The output includes raw chart data. An optional AI analysis can be included if enabled. Results may be cached or stored in MongoDB depending on options set. Supported export formats default to JSON.
Examples
Example 1: Export BTCUSD chart data for 1 Hour timeframe as JSON with AI analysis enabled and caching active.
Set Symbol to 'BTCUSD', Timeframe to '60', select 'Export' operation under 'Chart' resource. Enable 'Use AI Analysis' and 'Cache Results' in options.