Screen crypto markets across 77 real-time metrics
curl --request POST \
--url https://api.darvas.app/v1/crypto/screener \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{}'import requests
url = "https://api.darvas.app/v1/crypto/screener"
payload = {}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.darvas.app/v1/crypto/screener', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"market_type": "swap",
"timeframe": "1H",
"universe": "all",
"combine": "AND",
"total_scanned": 240,
"matched": 18,
"returned": 1,
"complete": true,
"as_of": "2026-11-28T12:04:10.000Z",
"results": [
{
"ticker": "BTC-USDT-SWAP",
"price": 97811.4,
"candle_time": "2026-11-28T12:00:00.000Z",
"updated_at": "2026-11-28T12:04:10.000Z",
"metrics": {
"price": 97811.4,
"technicalRating": 0.62,
"rsi14": 64.2,
"ema200": 91200.5,
"macd.macd": 412.8,
"macd.signal": 377.1
},
"mtf_metrics": {
"1D": {
"rsi14": 58.7
}
}
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Crypto Screener
Crypto Screener API: 77 Technical & Flow Metrics
Screen OKX crypto spot, perpetual and futures markets over POST with AND/OR conditions across 77 technical rating, RSI, MACD, volume and OI metrics.
Screen crypto markets across 77 real-time metrics
curl --request POST \
--url https://api.darvas.app/v1/crypto/screener \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{}'import requests
url = "https://api.darvas.app/v1/crypto/screener"
payload = {}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.darvas.app/v1/crypto/screener', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"market_type": "swap",
"timeframe": "1H",
"universe": "all",
"combine": "AND",
"total_scanned": 240,
"matched": 18,
"returned": 1,
"complete": true,
"as_of": "2026-11-28T12:04:10.000Z",
"results": [
{
"ticker": "BTC-USDT-SWAP",
"price": 97811.4,
"candle_time": "2026-11-28T12:00:00.000Z",
"updated_at": "2026-11-28T12:04:10.000Z",
"metrics": {
"price": 97811.4,
"technicalRating": 0.62,
"rsi14": 64.2,
"ema200": 91200.5,
"macd.macd": 412.8,
"macd.signal": 377.1
},
"mtf_metrics": {
"1D": {
"rsi14": 58.7
}
}
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint screens live snapshots of OKX USDT markets with a JSON body sent byPOST. Each condition compares one of 77 metrics, from composite technical ratings, RSI, MACD and moving averages to open interest and funding, with a number, a range or another metric. A condition can also detect a crossover or read its own timeframe, and the matches come back sorted with the metrics the screen used. Call /crypto/screener/metrics first to read every valid metric ID.
| Coverage | Details |
|---|---|
| Markets | market_type: spot, swap (default) or futures, OKX USDT instruments |
| Timeframes | timeframe: 5m, 15m, 1H (default), 4H or 1D, the bars technical metrics are computed on; a condition can set its own |
| Universe | universe: all (default) or altcoins, which leaves out BTC-base pairs; tickers narrows it to a list of up to 200 instruments |
| Conditions | Up to 12, joined by combine: AND (default) or OR |
| Results | limit from 1 to 200 (default 50), ordered by sort (default volume24h, descending) |
| MCP tool | screen_crypto_markets on the data API MCP server |
Request body
- Comparisons. Each entry in
conditionshas ametric, anoperatorand exactly one right-hand side:value, a number, orright_metric, another metric ID.lt,lte,gt,gteandeqcompare the newest values.right_multiplierscalesright_metric, so{"metric": "price", "operator": "gt", "right_metric": "ema200", "right_multiplier": 1.05}keeps markets trading more than 5% above their 200 EMA. - Ranges.
betweenkeeps values fromvaluetoupper_value, both included, andoutsidekeeps values belowvalueor aboveupper_value, as in{"metric": "rsi14", "operator": "between", "value": 40, "upper_value": 60}. - Crossovers.
crosses_abovematches when the metric was at or below the right-hand side on the previous bar and is above it on the newest bar;crosses_belowis the mirror. A MACD bullish cross is{"metric": "macd.macd", "operator": "crosses_above", "right_metric": "macd.signal"}. Crossovers need the previous bar, so they work on price, volume and indicator metrics, not on 24-hour ticker, performance or derivatives metrics. - Timeframe per condition. A condition with
timeframereads its metrics on that bar, such as a daily RSI inside a1Hscreen:{"metric": "rsi14", "operator": "gt", "value": 50, "timeframe": "1D"}. Its values come back inmtf_metrics. - Ratings.
technicalRating,oscillatorRatingandtrendRatingrun from-1to1. A technical rating of0.5or more reads as a strong buy,0.1or more as a buy,-0.1or less as a sell and-0.5or less as a strong sell. - Watchlists.
tickerstakes up to 200 OKX instrument IDs, such asBTC-USDT-SWAP, and the screen evaluates only those. - Validation. A condition with both or neither of
valueandright_metric, a range without anupper_valueof at leastvalue, anupper_valueon any other operator, or aright_multiplierwithoutright_metricreturns400, as does any field the schema does not list. - Empty screens. Without
conditions, the answer lists every active instrument of the universe insortorder. - Sort.
sort.metricis any metric ID, read on the requesttimeframe, andsort.directionisdesc(default) orasc; instruments missing that metric always sort last. - Metric IDs. Multi-output indicators use dotted IDs, such as
macd.histogram,bollinger.width,adx14.plusDIorsupertrend.direction. Derivatives metrics such asopenInterestUsd,fundingRateandtakerBuyRatio1hhave values only for swaps and futures.
Response
- Counts.
total_scannedis the instruments evaluated in the universe,matchedthose that pass, andreturnedthe rows inresults. Darvas evaluates every condition on every instrument of the universe, somatchedis exact andcompleteistrue. - Rows. Each result carries
ticker(such asBTC-USDT-SWAP),price,candle_time(the start of the newest evaluated bar),updated_at(when its snapshot refreshed) andmetrics, keyed by metric ID.metricsholdsprice, the sort metric and every metric the conditions name on the request timeframe.mtf_metricsholds, per timeframe, the values that conditions with their owntimeframeread, for price and the metrics the screener keeps on every timeframe, such as the ratings,rsi14,relativeVolumeanddistEma200Pct. A metric without a value is left out. - Freshness.
as_ofis the newest snapshot update among the returned rows, in UTC. When the screener service cannot answer, the request returns503.
/crypto/derivatives/oi-scan. For indicator history of one market, see /crypto/indicators. For candles and instruments, see /crypto/prices and /crypto/tickers.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.post(
"https://api.darvas.app/v1/crypto/screener",
headers=headers,
json={
"market_type": "swap",
"timeframe": "1H",
"universe": "altcoins",
"combine": "AND",
"conditions": [
{"metric": "technicalRating", "operator": "gte", "value": 0.5},
{"metric": "rsi14", "operator": "between", "value": 50, "upper_value": 70},
{"metric": "macd.macd", "operator": "crosses_above", "right_metric": "macd.signal"},
{"metric": "price", "operator": "gt", "right_metric": "ema200", "right_multiplier": 1.02},
{"metric": "distEma200Pct", "operator": "gt", "value": 0, "timeframe": "4H"},
{"metric": "fundingRate", "operator": "lt", "value": 0.01},
],
"sort": {"metric": "relativeVolume", "direction": "desc"},
"limit": 25,
},
)
resp.raise_for_status()
screen = resp.json()
print("Scanned:", screen["total_scanned"], "Matched:", screen["matched"])
for row in screen["results"]:
m = row["metrics"]
h4 = row.get("mtf_metrics", {}).get("4H", {})
print(row["ticker"], row["price"], "Rating:", m.get("technicalRating"), "RSI:", m.get("rsi14"), "4H above EMA200 %:", h4.get("distEma200Pct"))
# Watchlist screen: daily RSI below 35 or price more than 3% below its 50 SMA
curl -X POST "https://api.darvas.app/v1/crypto/screener" \
-H "X-API-KEY: $DARVAS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"market_type":"spot","timeframe":"4H","combine":"OR","tickers":["BTC-USDT","ETH-USDT","SOL-USDT","DOGE-USDT"],"conditions":[{"metric":"rsi14","operator":"lt","value":35,"timeframe":"1D"},{"metric":"price","operator":"lt","right_metric":"sma50","right_multiplier":0.97}],"sort":{"metric":"technicalRating","direction":"asc"},"limit":10}'
Authorizations
apiKeybearerKey
Body
application/json
The query of screen crypto markets across 77 real-time metrics.
Query payload for POST /crypto/screener.
Response
Screen crypto markets across 77 real-time metrics: one page.
The answer of POST /crypto/screener.