Discovery and markets API

How has the whole crypto market moved over time?

Total crypto market cap and 24h volume over the last day (hourly) or 7, 30, 90, 365 days or all history since 2013 (daily). No chain, no token: the whole market.

GET/api/external/discovery/global-market-history

What it returns

A time series of the entire crypto market across all chains and venues: total market cap and trailing 24h volume in USD at each point. days=1 answers hourly points; every longer window answers one point per day at 00:00 UTC, and max reaches back to April 2013. Each point's volume is the 24h volume as of that instant, not a calendar-day total. volumeUsd24h is null where no volume was recorded — every day before March 2018, and usually the newest daily point, whose day is still in progress. Windows are refreshed separately, so the newest point of one window may be a day behind another's, and the newest hourly market cap can differ from the current snapshot by a few percent.

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/global-market-history"
Parameters
ParameterDescription
days

query · string · optional

Trailing window in days, or max for all history. 1 is hourly, every other window daily. Defaults to 30. days ≤ 90 keeps the answer under 32 KB.173090365max

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 the whole crypto market moved over time?
FieldTypeDescription
daysstringThe window answered.
granularitystringSpacing of the points.
pointsobject[]Oldest first, one per timestamp.
points[].timestampintegerUnix seconds.
points[].marketCapUsdnumber | nullTotal market cap of the whole market at that instant, USD.
points[].volumeUsd24hnumber | nullTrailing 24h volume of the whole market at that instant, USD. Null where none was recorded — never a claim of zero volume.

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