Skip to main content
Screen crypto markets across 77 real-time metrics

Overview

This endpoint screens live snapshots of OKX USDT markets with a JSON body sent by POST. 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.

Request body

  • Comparisons. Each entry in conditions has a metric, an operator and exactly one right-hand side: value, a number, or right_metric, another metric ID. lt, lte, gt, gte and eq compare the newest values. right_multiplier scales right_metric, so {"metric": "price", "operator": "gt", "right_metric": "ema200", "right_multiplier": 1.05} keeps markets trading more than 5% above their 200 EMA.
  • Ranges. between keeps values from value to upper_value, both included, and outside keeps values below value or above upper_value, as in {"metric": "rsi14", "operator": "between", "value": 40, "upper_value": 60}.
  • Crossovers. crosses_above matches when the metric was at or below the right-hand side on the previous bar and is above it on the newest bar; crosses_below is 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 timeframe reads its metrics on that bar, such as a daily RSI inside a 1H screen: {"metric": "rsi14", "operator": "gt", "value": 50, "timeframe": "1D"}. Its values come back in mtf_metrics.
  • Ratings. technicalRating, oscillatorRating and trendRating run from -1 to 1. A technical rating of 0.5 or more reads as a strong buy, 0.1 or more as a buy, -0.1 or less as a sell and -0.5 or less as a strong sell.
  • Watchlists. tickers takes up to 200 OKX instrument IDs, such as BTC-USDT-SWAP, and the screen evaluates only those.
  • Validation. A condition with both or neither of value and right_metric, a range without an upper_value of at least value, an upper_value on any other operator, or a right_multiplier without right_metric returns 400, as does any field the schema does not list.
  • Empty screens. Without conditions, the answer lists every active instrument of the universe in sort order.
  • Sort. sort.metric is any metric ID, read on the request timeframe, and sort.direction is desc (default) or asc; instruments missing that metric always sort last.
  • Metric IDs. Multi-output indicators use dotted IDs, such as macd.histogram, bollinger.width, adx14.plusDI or supertrend.direction. Derivatives metrics such as openInterestUsd, fundingRate and takerBuyRatio1h have values only for swaps and futures.

Response

  • Counts. total_scanned is the instruments evaluated in the universe, matched those that pass, and returned the rows in results. Darvas evaluates every condition on every instrument of the universe, so matched is exact and complete is true.
  • Rows. Each result carries ticker (such as BTC-USDT-SWAP), price, candle_time (the start of the newest evaluated bar), updated_at (when its snapshot refreshed) and metrics, keyed by metric ID. metrics holds price, the sort metric and every metric the conditions name on the request timeframe. mtf_metrics holds, per timeframe, the values that conditions with their own timeframe read, for price and the metrics the screener keeps on every timeframe, such as the ratings, rsi14, relativeVolume and distEma200Pct. A metric without a value is left out.
  • Freshness. as_of is the newest snapshot update among the returned rows, in UTC. When the screener service cannot answer, the request returns 503.
For open interest buildup and decay ranked by contract, see /crypto/derivatives/oi-scan. For indicator history of one market, see /crypto/indicators. For candles and instruments, see /crypto/prices and /crypto/tickers.

Examples

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Body

application/json

The query of screen crypto markets across 77 real-time metrics.

Query payload for POST /crypto/screener.

market_type
enum<string>
default:swap

Crypto market segment to scan: spot, swap, or futures.

Available options:
spot,
swap,
futures
Maximum string length: 10
Example:

"swap"

timeframe
enum<string>
default:1H

Candle timeframe of the screen: conditions without their own timeframe and the sort read it.

Available options:
5m,
15m,
1H,
4H,
1D
Maximum string length: 4
Example:

"1H"

universe
enum<string>
default:all

Instrument universe: all includes BTC pairs; altcoins excludes BTC-base pairs.

Available options:
all,
altcoins
Maximum string length: 12
Example:

"all"

combine
enum<string>
default:AND

Logical combinator across supplied screener conditions: AND or OR.

Available options:
AND,
OR
Maximum string length: 4
Example:

"AND"

tickers
string[]

Optional watchlist of up to 200 OKX instrument IDs; the screen evaluates only these instruments.

Required array length: 1 - 200 elements
Maximum string length: 64
Pattern: ^[A-Za-z0-9-]{1,64}$
Example:
conditions
object[]

Up to 12 metric conditions; empty lists return all active instruments sorted.

Maximum array length: 12
sort
object

Sorting rule for matched crypto screener instruments.

Example:
limit
integer<int32>
default:50

Maximum matched crypto screener instruments returned (1 to 200).

Required range: 1 <= x <= 200
Example:

50

Response

Screen crypto markets across 77 real-time metrics: one page.

The answer of POST /crypto/screener.

market_type
enum<string>
required

Echoed crypto screener market segment.

Available options:
spot,
swap,
futures
Example:

"swap"

timeframe
enum<string>
required

Echoed crypto screener bar timeframe.

Available options:
5m,
15m,
1H,
4H,
1D
Example:

"1H"

universe
enum<string>
required

Echoed crypto screener universe scope.

Available options:
all,
altcoins
Example:

"all"

combine
enum<string>
required

Echoed logical combinator applied to conditions.

Available options:
AND,
OR
Example:

"AND"

total_scanned
integer<int32>
required

Total active instruments evaluated within the selected universe.

Required range: 0 <= x <= 100000
Example:

240

matched
integer<int32>
required

Total instruments satisfying the screen conditions.

Required range: 0 <= x <= 100000
Example:

18

returned
integer<int32>
required

Number of matched rows included in this response.

Required range: 0 <= x <= 200
Example:

1

complete
boolean
required

True when the entire selected universe was evaluated; the screener evaluates every condition on every instrument, so matched is exact.

Example:

true

as_of
string<date-time>
required

Newest snapshot update timestamp across returned screener rows in UTC.

Maximum string length: 30
Example:

"2026-11-28T12:04:10.000Z"

results
object[]
required

Matched crypto instruments ordered by sort.

Maximum array length: 200