tradingview-screener
A package for creating stock screeners with the TradingView API
What it is and what it does
tradingview-screener is a low-level Python wrapper around TradingView's official screener API that lets you programmatically query market data without web scraping. It supports stocks across 70 countries, crypto, options, forex, CFDs, futures, bonds, and more—retrieving OHLC data, technical indicators, fundamental metrics like P/E and EPS, and TradingView-specific fields. You build queries using a chainable API (select, where, order_by, limit) with SQL-like filtering syntax and can freely mix multiple timeframes (1m through 1M) per field.
The package depends on pandas for data handling and requests for HTTP communication. It returns results as pandas DataFrames, making it easy to integrate with analysis pipelines. Real-time data requires TradingView session authentication via cookies or API login; unauthenticated queries return delayed data. The library is designed to be forward-compatible and documents the full API surface, including screener functions for stocks, crypto, options, forex, and other instruments.
Use it for:
- Build automated stock screeners that filter by market cap, volume, technical indicators, and fundamental ratios without manual TradingView UI interaction.
- Retrieve historical OHLC and indicator data across multiple timeframes for backtesting trading strategies.
- Query crypto pairs, options chains, or forex instruments to monitor specific markets or build watchlists programmatically.
- Integrate TradingView data into a larger financial analysis or portfolio management system via pandas DataFrames.
- Access real-time streaming data for supported exchanges when authenticated with TradingView session credentials.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Query TradingView's screener API to retrieve market data across stocks, crypto, options, forex, futures, and other instruments with support for technical indicators, fundamental metrics, and multiple timeframes.
Yes. The package has low install friction, active maintenance, permissive MIT licensing, and no known vulnerabilities. It directly wraps TradingView's official API, eliminating the need for web scraping. Install it if you need programmatic access to TradingView market data; be aware that real-time data requires authentication and that unauthenticated queries return delayed data only.
Install
tradingview-screener on PyPI
pip
pip install tradingview-screeneruv
uv add tradingview-screenerpoetry
poetry add tradingview-screenerInstalling tradingview-screener
Before you install
Low friction install with only two runtime dependencies (pandas, requests). Active maintenance with a recent release and 1130 GitHub stars. Supports Python 3.9 through 3.14.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely as long as you include the license notice.
Quickstart
pip install tradingview-screener
from tradingview_screener import Query
x = (Query()
.select('name', 'close', 'volume', 'market_cap_basic')
.get_scanner_data())
print(x)
Requires TradingView session authentication (via cookies or API login) for real-time data; unauthenticated queries return delayed data only.
Verify before relying
- Whether free tier access is sufficient for typical use cases or if a paid TradingView subscription is required
- Rate limiting and request throttling policies to avoid account bans or temporary blocks
- Exact number of supported data fields beyond the stated 3000+ figure
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pandas, requests |
| Maintenance | actively maintained — 55 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 160,114/month — #10,672 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tradingview_screener-3.2.1-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tradingview-taRetrieves technical analysis indicators and…
permissive · top 15,000 on PyPI
tradingeconomicsProvides Python access to over 300,000 economic…
permissive · top 15,000 on PyPI
robin-stocksProvides a Python interface to the Robinhood,…
permissive · top 15,000 on PyPI
investor-agentProvides financial research tools as an MCP…
permissive · top 15,000 on PyPI
finvizfinanceScrapes financial data from FinViz website,…
permissive · top 15,000 on PyPI
metatrader5Connects Python to MetaTrader 5 Terminal to…
permissive · top 15,000 on PyPI
yahooqueryRetrieves financial data from Yahoo Finance…
permissive · top 15,000 on PyPI
finance-datareaderFetches historical and current financial…
permissive · top 15,000 on PyPI
technicalTechnical provides a collection of technical…
copyleft · top 15,000 on PyPI
pandas_market_calendarsProvides market and exchange trading calendars…
permissive · top 5,000 on PyPI