TV Scraper
The most comprehensive and powerful Python library for programmatic access to TradingView data.
Attribution
This project is based on mnwato/tradingview-scraper. Thanks to the original author for the foundational work.
🚀 Introduction
TradingView Scraper is a robust Python library designed to bridge the gap between TradingView's visual data and your algorithmic needs. Whether you are building a trading bot, a market analysis dashboard, or a research tool, this library allows you to extract real-time and historical data directly from TradingView without the need for an official API key.
It goes beyond simple price scraping, offering deep access to: - Technical Analysis: 80+ built-in indicators (RSI, MACD, Bollinger Bands, etc.) calculated in real-time. - Social Sentiment: Community Ideas, Minds discussions, and News sentiment. - Fundamental Data: Financial statements, ratios, and company overview. - Live Streaming: WebSocket integration for real-time OHLCV and indicator updates.
⚡ Quick Glance
Get up and running in seconds. Here's how to fetch technical indicators for Bitcoin:
from tradingview_scraper.symbols.technicals import Indicators
# Initialize the scraper
scraper = Indicators()
# Get RSI and MACD for BTCUSD on Binance
data = scraper.scrape(
exchange="BINANCE",
symbol="BTCUSD",
timeframe="1d",
indicators=["RSI", "MACD"]
)
print(data)
📦 Key Modules
The library is organized into specialized modules to handle different types of data efficiently:
| Module | Description |
|---|---|
Indicators |
Fetch values for standard and custom technical indicators. |
Streamer |
Connect to WebSocket for live price and indicator updates. |
Ideas |
Scrape trading ideas, strategies, and educational content. |
News |
Access real-time news headlines and detailed articles. |
Screener |
Filter stocks, crypto, and forex based on technical/fundamental criteria. |
Fundamentals |
Retrieve balance sheets, income statements, and cash flow. |
MarketMovers |
Identify top gainers, losers, and active symbols. |
✨ Why TradingView Scraper?
- Zero Configuration: No API keys required for most features. Works out of the box.
- Broad Coverage: Supports 260+ exchanges (Binance, NASDAQ, NYSE, Forex) and 18+ markets.
- Real-Time & Historical: switch seamlessly between scraping static data and streaming live updates.
- Developer Friendly: Fully typed, structured JSON output, and built with modern Python (3.11+).
- Export Ready: Built-in support for exporting data to JSON and CSV for analysis.
📚 Next Steps
- Follow the Quick Start Guide to set up your first scraper.
- Explore Supported Data to see available exchanges and indicators.
- Learn about Real-time Streaming for live data applications.
Built with ❤️ for the algorithmic trading community.