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.

GET/api/external/discovery/bitcoin-cycle-indicators-brief

What 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"
Parameters
ParameterDescription
indicator

query · string · required

The model.pi-cyclepuell-multiple2-year-ma-multiplier200-week-marainbowbubble-indexahr999macro-oscillatorprofitable-daysgolden-ratio-multiplier
days

query · 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.

Response fields of Bitcoin cycle indicators brief: a valuation model in a few points
FieldTypeDescription
indicatorstringThe model 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 | nullThe bitcoin price the model used that day, USD.
points[].valuesobjectThe 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