Skip to main content
Scan crypto perpetuals and futures by open interest change

Overview

This endpoint ranks OKX perpetual swap or futures contracts by how much their open interest built up or decayed over the chosen bar window. Send the filters as a JSON body by POST; each row returns the contract’s open interest in USD, its change in USD and percent, 24-hour volume, last price and a direction label.

Filters and fields

  • Filters. min_oi_usd and min_vol_usd_24h drop contracts below that open interest or 24-hour volume in USD. min_abs_oi_delta_pct keeps moves of at least that size either way, in percent: 1.5 means 1.5 percent. A field the schema does not list returns 400.
  • Ranking. sort_order: "desc" on oi_delta_pct puts the strongest buildup first; asc puts the strongest decay first.
  • Rows. Each result has ticker (such as BTC-USDT-SWAP), oi_usd, oi_delta_usd and oi_delta_pct (in percent, rounded to four places), vol_usd_24h and last.
  • Direction. direction is accumulation when oi_delta_pct is above zero, distribution below zero and flat at zero.
  • Freshness. as_of is when Darvas produced the answer; identical scans may be served from a cache for up to a minute. A filter the exchange rejects returns 400, and an outage returns 503.
For one contract’s open interest, funding and long/short history, see /crypto/derivatives. To combine open interest with technical conditions, see /crypto/screener. For estimated liquidation levels of a contract, see /crypto/liquidations/heatmap.

Examples

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Body

application/json

The query of scan crypto perpetuals and futures by open interest change.

Query payload for POST /crypto/derivatives/oi-scan.

market_type
enum<string>
default:swap

Derivatives contract category to scan for open interest changes: swap or futures.

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

"swap"

timeframe
enum<string>
default:1H

Lookback bar window over which open interest change is measured.

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

"1H"

min_oi_usd
number<double>

Minimum current open interest in USD required to include a contract.

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

10000000

min_vol_usd_24h
number<double>

Minimum rolling 24-hour trading volume in USD required to include a contract.

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

25000000

min_abs_oi_delta_pct
number<double>

Minimum absolute open interest percent change (for example 1.5 for 1.5%).

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

1.5

sort_by
enum<string>
default:oi_delta_pct

Metric field used to rank open interest change scan results.

Available options:
oi_delta_pct,
oi_usd,
oi_delta_usd,
vol_usd_24h,
last
Maximum string length: 16
Example:

"oi_delta_pct"

sort_order
enum<string>
default:desc

Sort direction for ranked open interest scan contracts.

Available options:
asc,
desc
Maximum string length: 4
Example:

"desc"

limit
integer<int32>
default:25

Maximum ranked open interest contracts returned (1 to 100).

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

25

Response

Scan crypto perpetuals and futures by open interest change: one page.

The answer of POST /crypto/derivatives/oi-scan.

exchange
enum<string>
required

The venue scanned; its tickers are that venue's instrument ids, which the other crypto endpoints take with this exchange.

Available options:
okx
Example:

"okx"

scope
enum<string>
required

The contracts the scan ranks, by market_type.

Available options:
every OKX perpetual swap,
every OKX dated future
Example:

"every OKX perpetual swap"

market_type
enum<string>
required

Echoed derivatives contract category scanned for open interest changes.

Available options:
swap,
futures
Example:

"swap"

timeframe
enum<string>
required

Echoed bar window used for the open interest change calculation.

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

"1H"

sort_by
enum<string>
required

Echoed ranking metric applied to open interest scan rows.

Available options:
oi_delta_pct,
oi_usd,
oi_delta_usd,
vol_usd_24h,
last
Example:

"oi_delta_pct"

sort_order
enum<string>
required

Echoed ranking direction for open interest scan rows.

Available options:
asc,
desc
Example:

"desc"

as_of
string<date-time>
required

UTC timestamp when the open interest scan response was produced.

Maximum string length: 30
Example:

"2026-11-28T12:05:00.000Z"

results
object[]
required

Ranked open interest scan contracts.

Maximum array length: 100