Skip to main content
Read a crypto price

Overview

This endpoint returns the latest minute close of a crypto instrument or Darvas aggregated pair, the current UTC day’s OHLCV candle so far, and the change since the UTC day opened. With exchange=darvas, the snapshot object includes constituents (every exchange the pair combines) and venues (the comma-separated subset requested, or null when all constituents are combined). Sending venues with a single exchange returns 400. A formula ticker such as USDTBTC, BTCUSDT*USDTETH, BTCUSDT/NVDAUSDT or 1 / [okx:BTC-USDT-SWAP] answers on exchange formula with market_type synthetic, the canonical formula as ticker, a display_symbol and its legs. price is the formula of the newest minute every leg holds, and the day’s candle is the formula of the legs’ UTC day candles. Every leg is a listed crypto instrument; a CFD or partner broker leg returns 400. /crypto/prices explains the formula syntax. Use /crypto/tickers to find valid IDs, /crypto/prices for historical candles and /crypto/indicators for technicals.

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

The exchange, darvas for Darvas's aggregate of the pair across every exchange that lists it, or formula for a formula ticker; okx 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}$

Response

Read a crypto price: one page.

The answer of GET /crypto/prices/snapshot.

snapshot
object
required

The newest price of an instrument, a Darvas aggregated pair or a formula.

Example: