Registry / data / tradingview-screener

tradingview-screener

JSON →
library3.2.0pypypi✓ verified 86d ago

A Python library for creating stock screeners using the TradingView API. Current version 3.2.0 supports Python >=3.9. Release cadence is irregular, with multiple feature releases in 2024-2025.

pip install tradingview-screener
INSTALL
IMPORT
SIG · TRADINGVIEW-SCREEN
T
tradingview-screener
datapythonv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Query
from tradingview_screener import Query
Correct import since v1.x.
Column
from tradingview_screener import Column
from tradingview_screener import column
Old name was lowercase 'column', now capitalized 'Column'. 'col' alias also available.
col
from tradingview_screener import col
Convenience alias for Column, added in v3.0.0.
stocks
from tradingview_screener import stocks
Pre-configured screener factories available since v3.2.0.

Basic usage: create a query, add filters with Column, scan and get DataFrame.

from tradingview_screener import Query, col # Create a query to scan US stocks with price > 100 and volume > 1M query = Query() query = query.select('name', 'close', 'volume', 'market_cap_basic') query = query.where( col('close').above(100), col('volume').above(1_000_000) ) query = query.order_by('market_cap_basic', ascending=False) count, df = query.get_scanner_data() print(f"Found {count} stocks") print(df.head())
Debug
Known issues
breakingIn v3.0.0, the import path for Column changed from 'tradingview_screener.column' to 'tradingview_screener.Column'. The lowercase 'column' is no longer valid.
fix
Use: from tradingview_screener import Column
affects: >=3.0.0
deprecatedThe 'scan()' method was deprecated in v2.x and removed in v3.0.0. Use 'get_scanner_data()' instead.
fix
Replace query.scan() with query.get_scanner_data()
affects: >=3.0.0
gotchaAPI rate limits apply. Excessive requests may get your IP temporarily blocked. The library does not handle retries automatically.
fix
Add delays between queries or use a backoff strategy.
affects: all
gotchaThe 'get_scanner_data()' returns a tuple (count, DataFrame). The count is the total number of results, which may differ from the length of the DataFrame if you set limit.
fix
Use 'len(df)' for actual rows returned; 'count' is total available.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'tradingview_screener'
Library not installed. Common when using in a new environment.
fix
Run: pip install tradingview-screener
AttributeError: 'Query' object has no attribute 'scan'
The 'scan()' method was removed in v3.0.0.
fix
Use 'query.get_scanner_data()' instead.
ImportError: cannot import name 'column' from 'tradingview_screener'
The old lowercase 'column' name was removed in v3.0.0.
fix
Use: from tradingview_screener import Column
Upgrade
Version history
3.2.0latest on PyPI · released May 7, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Bingbot
1
OpenAI (training)
1
Resources
tradingview-screener — pip install tradingview-screener · libregistry