tvscreener — Unleash the Power of TradingView Scanner in Python
1. What is it?
"If you've ever used TradingView, you know their 'Stock Screener' is excellent. You can filter global stocks based on technical conditions like 'stocks with RSI below 30' or 'MACD bullish crossover' in an instant. The problem is TradingView doesn't offer a free Official API to fetch this data programmatically. tvscreener was created as a Python Library to help us fetch data directly from TradingView's Scanner."
2. How does it work?
"Instead of using old-school Web Scraping which is slow and prone to breaking, tvscreener mimics request sending (API Wrapper) directly to TradingView's backend. Supports all markets: Whether it's Stock, Crypto, Forex, or even various Indices. No Paid Account needed: We can fetch basic data shown on the Screener page without paying expensive monthly fees."
3. Key Features
"What makes this library interesting is: Complete Technical Indicators: We can choose to fetch RSI, Moving Average, Bollinger Bands, or Volume for immediate analysis. Custom Filters: We can write complex filter conditions just like on the web, for example, selecting only Thai stocks with a closing price above the 200-day EMA. Pandas Integration: Returned data is in Pandas DataFrame format, which is the standard for Data Science and Bot developers, making it very easy to run further models."
4. Summary and Use Cases
"What can we do with it? Trading Bot: Create a bot that scans for stocks/coins meeting conditions and sends notifications to Line or Telegram. Daily Report: Automatically generate morning market summary reports. Backtesting: Use it to find a list of historically interesting stocks to test strategies. In short, if we need Real-time data or technical data from TradingView in our Python code, tvscreener is currently the lightest and fastest answer."







