Skip to main content
Read a crypto market's context

Overview

This endpoint bundles one crypto instrument’s recent price action, perpetual positioning across venues, and nearby high-impact macro releases into a single JSON response. It reads 24 hours of 5-minute candles on a Darvas aggregated pair (by default) or a single exchange, then assembles trailing price windows, hourly OHLCV bars, per-venue funding and open interest changes, and economic calendar releases.

Response sections and partial degradation

Each section fails independently so a single slow feed does not block the full market brief.
  • price and windows. price reports the latest 5-minute candle close (last), open timestamp (time, time_milliseconds), bar_interval ("5m"), and last_bar_closed. windows returns last_1h, last_4h, and last_24h, each with from, to, bars, change_percent, high, high_time, low, and low_time.
  • hourly_bars. Up to 25 UTC hourly OHLCV bars rolled up from the 5-minute series, oldest first. Pass include_hourly_bars=false to return null and shrink the payload.
  • derivatives. Populated when market_type is swap, and null for spot, futures, or options. Contains total_open_interest_usd (sum of venues that answered) and a venues array with funding_rate, next_funding_rate, next_funding_time, funding_interval_hours, open_interest_usd, open_interest_time, and open_interest_change_pct_1h, _4h, and _24h. On hyperliquid, open interest history is not published so the three OI change fields are null. On exchange=darvas, passing venues filters both the candles and the derivatives.venues list; sending venues with a single exchange returns 400.
  • macro. High-impact releases from the economic calendar with event_name, currency, country_name, importance, release_at, released, actual, forecast, and previous. Returns null when include_macro=false or when the calendar store is unavailable.
  • Related endpoints. For deeper structure analysis, see /crypto/market-structure. For single-venue live mark price and basis, see /crypto/derivatives/snapshot. For the full calendar filter set, see /macro/economic-calendar.

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:darvas

The exchange whose pairs or instrument to read, or darvas for Darvas's aggregated pairs; darvas without it.

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

false leaves out the day's hourly bars; true without it.

Available options:
true,
false
include_macro
enum<string>
default:true

false leaves out the macro releases; true without it.

Available options:
true,
false

Response

Read a crypto market's context: one page.

The answer of GET /crypto/context.

ticker
string
required

The instrument id of the context.

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

"BTC-USDT-SWAP"

exchange
enum<string>
required

The exchange of the context's candles.

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

"okx"

market_type
enum<string>
required

The market of the context's candles.

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

"swap"

observed_at
string<date-time>
required

When Darvas read the context.

Maximum string length: 30
Example:

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

price
object
required

The newest five-minute candle's close.

Example:
windows
object
required

The trailing hour, four hours and day; null without a candle in it.

Example:
hourly_bars
object[] | null
required

The day as UTC hours, oldest first; null with include_hourly_bars false.

Maximum array length: 25
derivatives
object | null
required

Funding and open interest; null for spot.

Example:
macro
object | null
required

Macro releases; null with include_macro false or while the calendar is unavailable.

Example:
constituents
string[]

With exchange darvas: every exchange the pair of the context 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 context's 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