Run a custom screen
stoquant_run_screenerScreen the stock universe using AND-combined filters on valuation, fundamentals, and technicals. Return matching tickers with the metrics you request.
Instructions
Run a custom stock screen. Read-only — nothing is mutated. All filters are AND-combined; returns an ARRAY of matching stocks (ticker, name, price, plus the requested metrics and overlays like valueScore/qScore/mlProbability). Valid filter fields (camelCase, case-sensitive): trailingPE, forwardPE, priceToBook, marketCap, epsTrailingTwelveMonths, dividendYield, bookValue, regularMarketPrice, fiftyDayAverage, twoHundredDayAverage, fiftyDayAverageChangePercent, twoHundredDayAverageChangePercent, regularMarketChangePercent, fiftyTwoWeekHighChangePercent, regularMarketVolume, averageDailyVolume3Month, sector, industry, rsi14, twentyDayAverageChangePercent, oneHundredFiftyDayAverageChangePercent, shortPercentOfFloat, grossMargins, operatingMargins, profitMargins, returnOnEquity, returnOnAssets, debtToEquity, revenueGrowth, earningsGrowth, pegRatio, currentRatio, numberOfAnalystOpinions. Additional sort-only fields: valueScore, qScore, marginOfSafety, mlProbability. Margins/growth are decimals (0.25 = 25%); marketCap is raw USD (250M = 250000000). An unknown field is rejected with a suggestion (it would otherwise silently return zero matches). For per-field units and typical ranges, read the stoquant://screener-fields resource. Tip: a full-universe scan can be slow and time out — prefer universe='sp500' and a handful of filters, or use stoquant_run_prebuilt_screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 50, max 100) | |
| filters | Yes | Filter conditions, all must match (AND) | |
| universe | No | sp500 | |
| sortField | No | Field to sort by (any valid field, or valueScore/qScore/marginOfSafety) | |
| sortDirection | No | desc |