List crypto order flow
curl --request GET \
--url https://api.darvas.app/v1/crypto/order-flow \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/order-flow"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/order-flow', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT",
"exchange": "okx",
"market_type": "spot",
"interval": "minute",
"interval_multiplier": 5,
"order_flow": [
{
"time": "2026-11-25T14:00:00.000Z",
"time_milliseconds": 1795615200000,
"buy_volume": 6,
"sell_volume": 7,
"delta": -1,
"buy_trades": 12,
"sell_trades": 14,
"min_delta": -1.5,
"max_delta": 2.5
}
]
}{
"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 Order Flow
Crypto Order Flow, CVD & Delta Bars API
Fetch bar-by-bar crypto buy volume, sell volume, bar delta and cumulative volume delta (CVD) across single exchanges or the Darvas composite feed.
List crypto order flow
curl --request GET \
--url https://api.darvas.app/v1/crypto/order-flow \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/order-flow"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/order-flow', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT",
"exchange": "okx",
"market_type": "spot",
"interval": "minute",
"interval_multiplier": 5,
"order_flow": [
{
"time": "2026-11-25T14:00:00.000Z",
"time_milliseconds": 1795615200000,
"buy_volume": 6,
"sell_volume": 7,
"delta": -1,
"buy_trades": 12,
"sell_trades": 14,
"min_delta": -1.5,
"max_delta": 2.5
}
]
}{
"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
Darvas splits every recorded trade by taker side to computebuy_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.
| Coverage | Details |
|---|---|
| Aggregated feed | darvas sums order flow across every trade-recorded exchange (OKX, Binance, Bybit, Hyperliquid) that lists the pair, including ALLUSD pairs (BTC-ALLUSD, BTC-ALLUSD-SWAP) |
| Single exchanges | okx (default), binance, bybit and hyperliquid |
| Retention tiers | 1m and 5m: 13 months; 15m and 30m: 37 months; 1H, 4H and 1D: permanent retention (Binance and Bybit history begins 23 November 2026) |
| Frames | minute x 1 (default), 5, 15, 30; hour x 1, 4; day x 1, in UTC |
| Page size | 500 bars; pages walk back in time from end_date, limit up to 50,000 (default 5,000) |
| MCP tool | list_crypto_order_flow on the data API MCP server |
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.
minutex 1 andminutex 5 read from 1-minute stored bars retained for 13 months.minutex 15 andminutex 30 read from 15-minute stored bars retained for 37 months.hourx 1,hourx 4, anddayx 1 read from hourly and daily stored bars retained permanently. - Aggregated order flow. Pass
exchange=darvasto sum base-unit buy and sell volumes and trade counts across all recorded venues for a pair, and optionally passvenues=binance,okxto narrow aggregation to specific venues. Sendingvenueswith a single exchange returns400. - Scope fields and pagination. Responses for
exchange=darvasincludeconstituents(all exchanges the pair combines) andvenues(the filtered subset, ornullwhen all constituents are included). Both fields are omitted for single-exchange requests. Each page lists its bars oldest first; follownext_page_urlto page backward tostart_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
# Aggregated 15-minute order flow for BTC perpetuals across Binance, Bybit and OKX
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/crypto/order-flow?ticker=BTC-USDT-SWAP&exchange=darvas&venues=binance,bybit,okx&interval=minute&interval_multiplier=15&start_date=2026-11-25"
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/crypto/order-flow",
headers=headers,
params={
"ticker": "BTC-ALLUSD-SWAP",
"exchange": "darvas",
"interval": "hour",
"interval_multiplier": 1,
"start_date": "2026-11-24",
},
).json()
for bar in resp["order_flow"][-3:]:
print(bar["time"], bar["delta"], bar["buy_trades"], bar["sell_trades"], bar["min_delta"], bar["max_delta"])
Authorizations
apiKeybearerKey
Query Parameters
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:
64Pattern:
^[A-Za-z0-9][A-Za-z0-9._:/-]{0,63}$Response
List crypto order flow: one page.
The answer of GET /crypto/order-flow.