Discovery and markets API
Bitcoin cycle indicators brief: a valuation model in a few points
One model (Pi Cycle, Puell, rainbow, AHR999 and more) in at most 60 points over the window, today included.
/api/external/discovery/bitcoin-cycle-indicators-briefWhat it returns
The brief of bitcoin-cycle-indicators; prefer it unless you need every day. The same model and window, with the daily series thinned to at most 60 points evenly spaced over it, the first and the newest (the model today) always kept, each exactly as bitcoin-cycle-indicators lists it; the model's figures and their names are that endpoint's. A crossing between two listed points is not shown: ask the full endpoint for the days around 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-cycle-indicators-brief?indicator=pi-cycle"
| Parameter | Description |
|---|---|
indicatorquery · string · required | The model.pi-cyclepuell-multiple2-year-ma-multiplier200-week-marainbowbubble-indexahr999macro-oscillatorprofitable-daysgolden-ratio-multiplier |
daysquery · string · optional | Trailing window in days, or all for the whole history. 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 |
|---|---|---|
indicator | string | The model 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 | The bitcoin price the model used that day, USD. |
points[].values | object | The model's figures that day, keyed by valueNames; null where it has 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