Skip to content

smitkunpara/tv-scraper

Repository files navigation

TV Scraper

Python 3.11+ MIT License

A high-performance Python library for extracting real-time financial data, technical indicators, and social insights from TradingView.


✨ Features

📡 Real-Time Streaming

  • 🕯️ Candle + Indicators: Stream live OHLCV candles with built-in or custom Pine indicators via CandleStreamer.
  • ⚡ Real-time Pricing: Persistent WebSocket connection for millisecond-accurate price updates.
  • 📊 Analyst Forecasts: Capture analyst price targets, EPS, and revenue estimates for stocks via ForecastStreamer.

📉 Financial & Technical Data

  • 🧩 Technical Analysis: Access RSI, MACD, EMAs, and 100+ other indicators via Technicals.
  • 🏛️ Fundamentals: Comprehensive financial statements, ratios, and balance sheets via Fundamentals.
  • ⛓️ Options Data: Retrieve full option chains, Greeks, IV, and theoretical prices via Options.
  • 📅 Events Calendar: Track Earnings, Dividends, IPOs, and Economic events via Calendar.

🔍 Discovery & Screening

  • 🔎 Screener: Run advanced market scans with custom filters across 50+ countries via Screener.
  • 🏁 Market Movers: Track top gainers, losers, and most active stocks via Market Movers.
  • 🌍 Global Markets: Discover symbols across exchanges and asset classes via Markets.

🤝 Social & Community

  • 💡 Trading Ideas: Scrape community-driven trading setups and technical ideas via Ideas.
  • 🧠 Heads-up (Minds): Access real-time discussions and community posts via Minds.
  • 📰 News Feed: Integrated news stream with granular filters by symbol or region via News.

🚀 Quick Start

from tv_scraper import CandleStreamer

# Initialize the streamer
streamer = CandleStreamer()

# Fetch real-time candles and indicators
result = streamer.get_candles(
    exchange="BINANCE",
    symbol="BTCUSDT",
    timeframe="1m",
    numb_candles=5,
    indicators=[("STD;RSI", "1.0")]
)

if result["status"] == "success":
    print(result["data"]["ohlcv"])

📚 Documentation

For complete documentation, installation guides, and API references, visit:

📖 Full Documentation

Key Resource Links


🛠️ Development & Contributing

We welcome contributions! Please see our Contributing Guide for details.


📄 License

Licensed under the MIT License.

About

A powerful Python library for scraping real-time market data, indicators, and ideas from TradingView.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages