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.
/api/external/discovery/bitcoin-onchain-metrics-briefWhat 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"
| Parameter | Description |
|---|---|
metricquery · string · required | The metric.active-addressesnew-addresseslong-term-holder-supplyshort-term-holder-supplylth-realized-pricesth-realized-pricelth-soprsth-soprnuplreserve-riskrhodl-ratio |
daysquery · 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.
| Field | Type | Description |
|---|---|---|
metric | string | The metric answered. |
days | string | The window answered. |
valueNames | string[] | The keys of every point's values, in order. |
pointCount | integer | Daily points in the full series over the window. |
points | object[] | At most 60 of the series' points, evenly spaced over the window, oldest first; the first and the newest are always kept. |
points[].timestamp | integer | Unix seconds, 00:00 UTC of the day. |
points[].priceUsd | number | null | Bitcoin's USD price that day. |
points[].values | object | The 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