TradingView Data Parser & API
TradingView is the world’s most-used charting and market-analysis platform, and StockAPIS extracts its data — OHLCV chart candles, technical indicators, screener results, analyst ratings and social sentiment across stocks, crypto, forex and futures — through a single REST API. TradingView does not publish an official public market-data API (it offers embeddable charting libraries and a Pine Script ecosystem, not a data feed), so StockAPIS handles the extraction and normalization for you, delivering the same schema you use for every other source.
| Type | Charting & market-analysis data platform |
|---|---|
| HQ | United States (Westerville, OH / global) |
| Owner | TradingView, Inc. |
| Asset classes | Stocks, Crypto, Forex, Futures, Commodities, Indices |
| Coverage | Global markets across 100+ exchanges |
| Scale | Top global charting/analysis site (~500M+ monthly visits) |
| API access | Unofficial API only |
| Parse priority | ★★★★☆ |
| Official site | www.tradingview.com |
Platform Overview
Market Position
- The most popular charting and technical-analysis platform on the web, with hundreds of millions of monthly visits
- Aggregates data from 100+ exchanges spanning stocks, crypto, forex, futures and commodities
- 100+ built-in technical indicators plus community Pine Script studies and an active social feed
- No official public data API — StockAPIS provides unofficial extraction with anti-detection handling
Data Coverage
StockAPIS exposes TradingView’s analytical surface:
- Chart data — OHLCV candles across multiple timeframes (1m → 1M) for historical and intraday analysis
- Technical indicators — RSI, MACD, Bollinger Bands, moving averages and other calculated studies
- Screener data — stock/crypto screeners with filters on market cap, P/E, volume, dividend yield and more
- Market & social sentiment — overall sentiment scores, social sentiment and trend signals
- Analyst ratings — buy/hold/sell recommendations and consensus targets
- Pattern & level data — support/resistance, trend lines and Fibonacci levels
Quick Start
import stockapis
client = stockapis.Client(api_key="your-api-key")
# Daily chart candles for a TradingView symbol
chart = client.tradingview.get_chart_data(symbol="AAPL", interval="1D", range="1M")
latest = chart["data"][0]
print(f"AAPL close: ${latest['close']} · RSI {chart['indicators']['rsi']}")const { StockAPIS } = require("stockapis");
const client = new StockAPIS({ apiKey: "your-api-key" });
// Pull chart candles plus indicators
const chart = await client.tradingview.getChartData({
symbol: "AAPL",
interval: "1D",
range: "1M",
});
console.log(chart.indicators.macd, chart.sentiment.overall);Sample API Response
{
"success": true,
"data": {
"symbol": "AAPL",
"interval": "1D",
"range": "1M",
"data": [
{ "time": 1640995200, "open": 185.59, "high": 187.05, "low": 184.93, "close": 185.14, "volume": 48591690 },
{ "time": 1640908800, "open": 184.37, "high": 186.99, "low": 183.63, "close": 185.59, "volume": 52341690 }
],
"indicators": {
"rsi": 65.4,
"macd": { "macd": 2.45, "signal": 1.23, "histogram": 1.22 },
"bollinger_bands": { "upper": 190.25, "middle": 185.14, "lower": 180.03 }
},
"sentiment": { "overall": "bullish", "score": 0.75, "social_sentiment": "positive" },
"analyst_rating": { "consensus": "buy", "target": 205.0 }
},
"metadata": { "source": "tradingview", "timestamp": "2024-01-15T10:30:00.000Z" }
}Use Cases
- Technical analysis automation — pull OHLCV candles and computed indicators (RSI, MACD, Bollinger) without rebuilding TradingView’s studies yourself
- Signal generation — turn indicator and sentiment data into systematic trading signals and alerts
- Stock & crypto screening — run screener filters on market cap, P/E, volume and dividend yield to surface candidates programmatically
- Sentiment & research dashboards — combine social sentiment, market sentiment and analyst ratings into one normalized feed
Frequently Asked Questions
Does TradingView have an official API? No — TradingView does not offer an official public market-data REST API. It provides embeddable charting libraries and the Pine Script scripting environment, but no open data feed. StockAPIS extracts the data and normalizes it to a unified schema so it matches every other source you pull.
What data can I get from TradingView through StockAPIS? OHLCV chart candles across timeframes, technical indicators (RSI, MACD, Bollinger Bands, moving averages), screener results, market and social sentiment, and analyst ratings across stocks, crypto, forex and futures.
Can I stream TradingView data in real time? StockAPIS supports near-real-time polling for chart candles, indicators and sentiment. Because TradingView has strong anti-bot protection and no official feed, low-latency streaming is best-effort and rate-limited.