Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tv_scraper-1.4.3.tar.gz (826.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tv_scraper-1.4.3-py3-none-any.whl (66.1 kB view details)

Uploaded Python 3

File details

Details for the file tv_scraper-1.4.3.tar.gz.

File metadata

  • Download URL: tv_scraper-1.4.3.tar.gz
  • Upload date:
  • Size: 826.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tv_scraper-1.4.3.tar.gz
Algorithm Hash digest
SHA256 a9b03d449a47d60e68959e51d17f39ef0c1310a3518a0843a11c6a9e78fb097d
MD5 e2cb750efc33a0793d3355d786e5529a
BLAKE2b-256 3f2f4f137c41d09ea388d314166d701312555fc46853e8d5b3b6d622591babfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tv_scraper-1.4.3.tar.gz:

Publisher: publish.yml on smitkunpara/tv-scraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tv_scraper-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: tv_scraper-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 66.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tv_scraper-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fe4d823b473d0c74f5b3b39043adb843a7f5ccb2bf60d1625cac487165adab
MD5 82b85f8ab8a024b00b39eb4473b00807
BLAKE2b-256 f659016f18aa40f9edf04427453c7039a047f26439a5e6d235e841968086b578

See more details on using hashes here.

Provenance

The following attestation bundles were made for tv_scraper-1.4.3-py3-none-any.whl:

Publisher: publish.yml on smitkunpara/tv-scraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page