Discovery and markets API

How has this exchange's trading volume moved over time?

One spot exchange's 24h volume in BTC over the last day (every 10 minutes), 7 or 14 days (hourly) or 30 to 365 days (daily). Addressed by exchange id; no chain.

GET/api/external/discovery/spot-venue-volume-history/{id}

What it returns

One spot exchange's trailing 24h volume in BTC over the last 1, 7, 14, 30, 90, 180 or 365 days, by the id spot-venues lists. days=1 answers a point every 10 minutes, 7 and 14 one per hour, every longer window one per day at 00:00 UTC. Each point is the 24h volume as of that instant, not a period total, so points must not be summed. The volume is in BTC as recorded: a trend in it also moves with the BTC price. A venue no longer tracked answers a series that ends early, so the newest point can be months old and a window can hold fewer points than days. An id that names no venue returns 404.

Chains

This endpoint is not tied to a chain: it takes no chain in its request.

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/discovery/spot-venue-volume-history/<id>"
Parameters
ParameterDescription
days

query · string · optional

Trailing window in days. 1 is every 10 minutes, 7 and 14 hourly, longer windows daily. Defaults to 30.17143090180365
id

path · string · required

A spot exchange's id, e.g. "binance", as id in spot-venues rows — not a token mint or contract address, and not scoped to any chain this API otherwise supports.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of How has this exchange's trading volume moved over time?
FieldTypeDescription
idstringThe id asked for, as sent. Matching is case-insensitive.
daysstringThe window answered.
granularitystringSpacing of the points.
pointsobject[]Oldest first, one per timestamp. Empty when the venue has no recorded volume in the window.
points[].timestampintegerUnix seconds.
points[].volumeBtc24hnumber | nullTrailing 24h volume of the venue at that instant, in BTC. 0 is a real reading for an idle venue.

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key