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.streaming 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.2.tar.gz (826.5 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.2-py3-none-any.whl (66.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tv_scraper-1.4.2.tar.gz
  • Upload date:
  • Size: 826.5 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.2.tar.gz
Algorithm Hash digest
SHA256 0f982d0de4f0c78146aa445bbd9928c4302014a111a08d3fe9a3f81643eec8c9
MD5 a4ae5938dae2fec21c3a3f4aeeb0f45e
BLAKE2b-256 81b8a0b682dd43babd4d67cee68eccb7854628d4a83254dcc0ee4b1e737026f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tv_scraper-1.4.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: tv_scraper-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 66.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f493ad292f1c85caa18cadf522215dcfcd3d37c2701d31d93125a31d7fbcb65
MD5 16a45fd0d0b2ce1e43dd6f68ebd27dbb
BLAKE2b-256 40ee6587499b4c7ae56513793621e06e78d8725ea1ff737c8f04b53fb21e89d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for tv_scraper-1.4.2-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