Skip to main content
List crypto trades

Overview

Darvas records public trades for every listed OKX, Binance, Bybit and Hyperliquid instrument and keeps 90 days of execution history. Raw executions belong to individual exchanges, so exchange=darvas returns 400. For cross-exchange aggregated taker flow, query /crypto/order-flow or /crypto/footprint with exchange=darvas. Each trade carries time, time_milliseconds, price, size (in base currency, or contracts where the venue counts contracts), side (the taker’s side, buy or sell), trade_id and notional_usd. notional_usd uses OKX’s contract value for OKX swaps, equals price * size for markets quoted in USD, USDT or USDC, and is null for other quotes.

Example

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; okx without it.

Available options:
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
start_time
string<date-time>

The window's first moment, ISO 8601; an hour before end_time without it.

Maximum string length: 40
end_time
string<date-time>

The window's end, ISO 8601; now without it.

Maximum string length: 40
limit
integer<int32>
default:1000

Trades to return across all pages.

Required range: 1 <= x <= 100000
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 trades: one page.

The answer of GET /crypto/trades.

ticker
string
required

The instrument id of the trades.

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

"BTC-USDT"

exchange
enum<string>
required

The exchange of the trades.

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

"okx"

market_type
enum<string>
required

The market of the trades.

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

"spot"

trades
object[]
required

This page of trades, newest first.

Maximum array length: 1000
next_page_url
string<uri>

The page of older trades; absent on the last one.

Maximum string length: 6000
Example:

"https://api.darvas.app/v1/crypto/trades?cursor=eyJleGNoYW5nZSI6Im9reCJ9"