List crypto trades
curl --request GET \
--url https://api.darvas.app/v1/crypto/trades \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/trades"
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/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT",
"exchange": "okx",
"market_type": "spot",
"trades": [
{
"time": "2026-11-25T14:59:59.000Z",
"time_milliseconds": 1795618799000,
"price": 97000,
"size": 0.01,
"notional_usd": 970,
"side": "buy",
"trade_id": "5000"
}
]
}{
"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 Tick Trades & Tape Executions API
Query recorded tick-level crypto trade executions with aggressor side, exact price, size and USD notional across supported exchanges with cursors.
List crypto trades
curl --request GET \
--url https://api.darvas.app/v1/crypto/trades \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/trades"
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/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ticker": "BTC-USDT",
"exchange": "okx",
"market_type": "spot",
"trades": [
{
"time": "2026-11-25T14:59:59.000Z",
"time_milliseconds": 1795618799000,
"price": 97000,
"size": 0.01,
"notional_usd": 970,
"side": "buy",
"trade_id": "5000"
}
]
}{
"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 records public trades for every listed OKX, Binance, Bybit and Hyperliquid instrument and keeps 90 days of execution history.| Coverage | Details |
|---|---|
| Exchanges | okx (default), binance, bybit and hyperliquid |
| History | 90 days for OKX swaps; since 23 November 2026 for OKX spot, Hyperliquid perpetuals, and Binance and Bybit spot and perpetuals; since September 2026 for the 100 busiest Hyperliquid spot pairs |
| Window | At most 24 hours per request; defaults to the last hour without start_time and end_time |
| Page size | 1,000 trades per page, newest trade first; limit counts across pages up to 100,000 (default 1,000) |
| MCP tool | list_crypto_trades on the data API MCP server |
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
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
trades = requests.get(
"https://api.darvas.app/v1/crypto/trades",
headers=headers,
params={
"ticker": "BTC-USDT-SWAP",
"exchange": "okx",
"start_time": "2026-11-25T14:00:00Z",
"end_time": "2026-11-25T14:05:00Z",
"limit": 5000,
},
).json()
large = [t for t in trades["trades"] if (t["notional_usd"] or 0) >= 100_000]
print(len(trades["trades"]), len(large))
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 trades: one page.
The answer of GET /crypto/trades.