Discovery and markets API

Bitcoin on-chain metrics brief: a holder metric in a few points

One metric (holder supply, realized price, SOPR, NUPL, reserve risk and more) in at most 60 points.

GET/api/external/discovery/bitcoin-onchain-metrics-brief

What it returns

The brief of bitcoin-onchain-metrics; prefer it unless you need every day. The same metric and window, with the daily series thinned to at most 60 points evenly spaced over it, the first and the newest closed day always kept, each exactly as bitcoin-onchain-metrics lists it. A day between two listed points is not shown: ask the full endpoint for it.

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/bitcoin-onchain-metrics-brief?metric=active-addresses"
Parameters
ParameterDescription
metric

query · string · required

The metric.active-addressesnew-addresseslong-term-holder-supplyshort-term-holder-supplylth-realized-pricesth-realized-pricelth-soprsth-soprnuplreserve-riskrhodl-ratio
days

query · string · optional

Trailing window in days back from the newest point, or all. Defaults to 365.30903651825all

Response fields

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

Response fields of Bitcoin on-chain metrics brief: a holder metric in a few points
FieldTypeDescription
metricstringThe metric answered.
daysstringThe window answered.
valueNamesstring[]The keys of every point's values, in order.
pointCountintegerDaily points in the full series over the window.
pointsobject[]At most 60 of the series' points, evenly spaced over the window, oldest first; the first and the newest are always kept.
points[].timestampintegerUnix seconds, 00:00 UTC of the day.
points[].priceUsdnumber | nullBitcoin's USD price that day.
points[].valuesobjectThe figure that day, keyed by valueNames; null where there is none.

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