Simple & Powerful
Clean, fluent API for building complex market screens with minimal code. Chain filters, select fields, and retrieve results effortlessly.
Query stocks, crypto, forex, bonds, and futures with 13,000+ fields

import { StockScreener, StockField } from 'tradingview-screener'
// Find undervalued dividend stocks
const screener = new StockScreener()
.where(StockField.PRICE_TO_EARNINGS_RATIO_TTM.lt(15))
.where(StockField.DIVIDEND_YIELD_FWD.gte(3))
.where(StockField.MARKET_CAPITALIZATION.gte(1_000_000_000))
.select(
StockField.NAME,
StockField.PRICE,
StockField.PRICE_TO_EARNINGS_RATIO_TTM,
StockField.DIVIDEND_YIELD_FWD
)
.sortBy(StockField.DIVIDEND_YIELD_FWD, false)
.setRange(0, 50)
const results = await screener.get()
console.log(`Found ${results.totalCount} stocks`)
results.data.forEach(stock => console.log(stock))Find undervalued stocks using P/E ratios, P/B ratios, dividend yields, and fundamental metrics.
Screen by RSI, MACD, moving averages, volume, and other technical indicators across multiple timeframes.
Discover high-yield dividend stocks with consistent payout history and strong fundamentals.
Identify high-growth companies using revenue growth, earnings momentum, and analyst recommendations.
Screen cryptocurrencies by market cap, volume, price changes, and technical indicators.
Use with Claude Desktop for natural language market queries and automated investment research.