Skip to main content
Read a crypto market's structure

Overview

This endpoint runs Darvas market structure engines over the newest candles of a Darvas aggregated pair (by default) or a single exchange instrument. Each requested engine returns its own top-level object (smc, order_blocks, fvg_sessions, swings, volume_zones, or monte_carlo) alongside candle window metadata (bars, from, to, and price).

Structure engines

Request only the engines you need with modules. Unrequested engine keys are omitted from the response.
  • Pivot and swing overrides. Pass swing_length (5 to 100) to override the pivot window for both smc and order_blocks. Pass deviation_pct (0.1 to 20) to override the minimum percentage move for swings.
  • Venue filtering. With exchange=darvas, pass comma-separated venues (such as venues=binance,bybit,okx) to restrict aggregation; sending venues with any single exchange returns 400. Aggregated answers return constituents and venues (null when unfiltered); single-exchange answers omit both.
  • Formulas. A formula ticker such as USDTBTC, BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT or 1 / [okx:BTC-USDT-SWAP] runs every engine over the formula’s candles, joined from its legs’ candles at the times all of them hold one. The answer carries exchange formula, market_type synthetic, the canonical ticker, a display_symbol and the legs. Volume-weighted engines (volume_zones) see volume 0 on a multi-leg formula. The prices page explains the syntax and the crypto-only rule.
  • Related endpoints. Combine structure levels with precomputed moving averages and momentum at /crypto/indicators, full OHLCV history at /crypto/prices, price-level order flow at /crypto/footprint, and single-call positioning context at /crypto/context.

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. A formula over listed crypto instruments is typed as in the chart's pair search, such as USDTBTC (the inverse of BTC-USDT), BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT, BTC/NVDA, COINBASE:BTCUSD - BINANCE:BTCUSDT or (BTCUSDT + ETHUSDT) / 2, or sent in the canonical form an answer names it by, such as 1 / [okx:BTC-USDT-SWAP]. Every leg is a listed instrument on a crypto exchange. With exchange formula the ticker is read as a formula; without it, a ticker no exchange lists is read as one, its symbols looked up on the exchange sent first.

Maximum string length: 512
Pattern: ^[A-Za-z0-9 ._:@/()\[\]*+^-]{1,512}$
exchange
enum<string>
default:darvas

The exchange whose candles the engines read, darvas for Darvas's aggregated pair, or formula for a formula ticker; darvas without it.

Available options:
darvas,
okx,
binance,
bybit,
hyperliquid,
coinbase,
kraken,
bitstamp,
deribit,
bitfinex,
formula
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}$
timeframe
enum<string>
default:1H

The candle frame the engines read; 1H without it.

Available options:
1m,
5m,
15m,
30m,
1H,
4H,
1D,
1W
modules
string
default:smc,swings

Comma-separated engines: smc, order_blocks, fvg_sessions (1H and finer), swings, volume_zones and monte_carlo; smc,swings without it.

Maximum string length: 80
Pattern: ^(smc|order_blocks|fvg_sessions|swings|volume_zones|monte_carlo)(,(smc|order_blocks|fvg_sessions|swings|volume_zones|monte_carlo)){0,5}$
lookback
integer<int32>
default:300

The newest candles the engines read.

Required range: 50 <= x <= 500
swing_length
integer<int32>

The pivot length of smc and order_blocks; without it smc uses 50 and order_blocks 5.

Required range: 5 <= x <= 100
deviation_pct
number<double>

The smallest move in percent that makes a new swing; without it, one fitting the frame, from 0.4 at 1m to 8 at 1W.

Required range: 0.1 <= x <= 20

Response

Read a crypto market's structure: one page.

The answer of GET /crypto/market-structure: one object per engine named in modules.

ticker
string
required

The instrument id of the candles the engines read, or with exchange formula the canonical formula, such as 1 / [okx:BTC-USDT-SWAP].

Maximum string length: 512
Pattern: ^[A-Za-z0-9 ._:@/()\[\]*+^-]{1,512}$
Example:

"BTC-USDT-SWAP"

exchange
enum<string>
required

The exchange of the candles the engines read, or formula.

Available options:
darvas,
okx,
binance,
bybit,
hyperliquid,
coinbase,
kraken,
bitstamp,
deribit,
bitfinex,
formula
Example:

"okx"

market_type
enum<string>
required

The market of the candles the engines read; synthetic for a formula.

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

"spot"

timeframe
enum<string>
required

The candle frame the engines read.

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

"1H"

bars
integer<int32>
required

The number of candles the engines read.

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

300

from
string<date-time>
required

The oldest candle the engines read.

Maximum string length: 30
Example:

"2026-11-16T01:00:00.000Z"

to
string<date-time>
required

The newest candle the engines read, perhaps still open.

Maximum string length: 30
Example:

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

price
number<double> | null
required

The close of the newest candle the engines read.

Example:

97811.4

modules
enum<string>[]
required

The structure engines in the answer.

Maximum array length: 6
Available options:
smc,
order_blocks,
fvg_sessions,
swings,
volume_zones,
monte_carlo
Example:
constituents
string[]

With exchange darvas: every exchange the analyzed pair combines. 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 the analyzed candles combine when venues narrowed them, null when they combine all of them. Absent for one exchange.

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

null

display_symbol
string

With exchange formula: the name Darvas shows for the formula of the candles the engines read, such as USDTBTC or BTC/NVDA. Absent otherwise.

Maximum string length: 512
Pattern: ^[^\x00-\x08\x0b\x0c\x0e-\x1f]*$
Example:

"USDTBTC"

legs
object[]

With exchange formula: the listed crypto instruments the formula of the candles the engines read reads. Absent otherwise.

Maximum array length: 10
smc
object

Smart Money Concepts, newest first where a list is cut.

Example:
order_blocks
object

Order and breaker blocks, nearest the last price first.

Example:
fvg_sessions
object

Session fair value gaps.

Example:
swings
object

Zigzag swings and the trend they make.

Example:
volume_zones
object

High-volume zones, nearest the last price first.

Example:
monte_carlo
object | null

The Monte Carlo projection; null with too few candles.

Example: