Skip to main content
List crypto order flow

Overview

Darvas splits every recorded trade by taker side to compute buy_volume, sell_volume, delta (buy_volume minus sell_volume), buy_trades, sell_trades, and the intrabar min_delta and max_delta. Order flow is stored across three retention tiers so coarser frames keep deeper history without losing intrabar delta extremes: multi-bar rollups (5m from 1m, 30m from 15m, and 4H from 1H) add each sub-bar’s extreme to the cumulative delta of prior sub-bars inside the bucket.

Retention tiers, aggregated flow and venue filtering

Choosing a coarser frame extends lookback depth while keeping exact cumulative delta and intrabar delta extremes:
  • Tiered history. minute x 1 and minute x 5 read from 1-minute stored bars retained for 13 months. minute x 15 and minute x 30 read from 15-minute stored bars retained for 37 months. hour x 1, hour x 4, and day x 1 read from hourly and daily stored bars retained permanently.
  • Aggregated order flow. Pass exchange=darvas to sum base-unit buy and sell volumes and trade counts across all recorded venues for a pair, and optionally pass venues=binance,okx to narrow aggregation to specific venues. Sending venues with a single exchange returns 400.
  • Scope fields and pagination. Responses for exchange=darvas include constituents (all exchanges the pair combines) and venues (the filtered subset, or null when all constituents are included). Both fields are omitted for single-exchange requests. Each page lists its bars oldest first; follow next_page_url to page backward to start_date.
  • Related endpoints. Need volume and trade counts broken down at every price level inside each bar? Use /crypto/footprint. For raw executions, see /crypto/trades. For high-notional whale sweeps, see /crypto/large-trades.

Examples

Authorizations

X-API-KEY
string
header
required

A Darvas data API key: dvk_ and 43 characters.

Query Parameters

ticker
string
required

The instrument id: BTC-USDT or BTC-USDT-SWAP on OKX, ETH-USDC-SWAP on Hyperliquid, BTC-USD on Coinbase, spot:BTCUSDT or perpetual:BTCUSDT on Binance and Bybit. A Binance or Bybit symbol such as BTCUSDT also works with market_type, spot without it. A Darvas aggregated pair is BASE-QUOTE or BASE-QUOTE-SWAP, such as BTC-USDT-SWAP, or BTC-ALLUSD for one combining its USD, USDT and USDC markets.

Maximum string length: 64
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$
exchange
enum<string>
default:okx

The exchange, or darvas for Darvas's aggregate of the pair across these exchanges; okx without it.

Available options:
darvas,
okx,
binance,
bybit,
hyperliquid
market_type
enum<string>

spot, swap, futures or option; without it, the type the id implies.

Available options:
spot,
swap,
futures,
option
venues
string

With exchange darvas: combine only these of the pair's exchanges, comma-separated. Any other exchange refuses it.

Maximum string length: 528
Pattern: ^[a-z0-9][a-z0-9-]{0,31}(,[a-z0-9][a-z0-9-]{0,31}){0,15}$
interval
enum<string>
default:minute

minute, hour or day; minute without it.

Available options:
minute,
hour,
day
interval_multiplier
integer<int32>
default:1

Bars of this many intervals: minute 1, 5, 15, 30; hour 1, 4; day 1.

Required range: 1 <= x <= 30
start_date
string<date>
required

The first UTC day to return.

Maximum string length: 10
end_date
string<date>

The last UTC day to return; today without it.

Maximum string length: 10
limit
integer<int32>
default:5000

Candles to return across all pages.

Required range: 1 <= x <= 50000
cursor
string

The cursor from a previous next_page_url. It replaces every other parameter.

Maximum string length: 4096
Pattern: ^[A-Za-z0-9_-]+$

Response

List crypto order flow: one page.

The answer of GET /crypto/order-flow.

ticker
string
required

The instrument id of the order flow.

Pattern: ^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$
Example:

"BTC-USDT"

exchange
enum<string>
required

The exchange of the order flow.

Available options:
darvas,
okx,
binance,
bybit,
hyperliquid
Example:

"okx"

market_type
enum<string>
required

The market of the order flow.

Available options:
spot,
swap,
futures,
option
Example:

"spot"

interval
enum<string>
required

The interval of the order flow bars.

Available options:
minute,
hour,
day
Example:

"minute"

interval_multiplier
integer<int32>
required

Intervals per order flow bar.

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

5

order_flow
object[]
required

This page of bars, oldest first.

Maximum array length: 500
constituents
string[]

With exchange darvas: every exchange contributing to these order flow bars. Absent for one exchange.

Maximum array length: 16
Maximum string length: 32
Pattern: ^[a-z0-9][a-z0-9-]{0,31}$
Example:
venues
string[] | null

With exchange darvas: the exchanges feeding these order flow bars when venues narrowed them, null when all are included. Absent for one exchange.

Maximum array length: 16
Maximum string length: 32
Pattern: ^[a-z0-9][a-z0-9-]{0,31}$
Example:
next_page_url
string<uri>

The page of earlier bars; absent on the first day asked for.

Maximum string length: 6000
Example:

"https://api.darvas.app/v1/crypto/order-flow?cursor=eyJleGNoYW5nZSI6Im9reCJ9"