Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- The full API needs a Professional subscription. Advanced subscribers get the Light API: 14 days of history, 24h resolution only, 50 calls a day.
- Each data call costs data credits: 1 for BTC, 2 for any other asset. Metadata calls cost none.
- Default limit is 600 requests/minute (x-rate-limit-* response headers); over it returns 429.
- Series come back as [{t, v}] with t in Unix seconds; multi-value metrics put an object in o instead of a number in v.
- Hundreds of metrics share one shape, GET /v1/metrics/<group>/<metric> with a, s, u, i; list them with metadata.metrics and check a metric’s parameters with metadata.metric.
Endpoints
Get price history
Get OHLC price history
- VWAP-like composite across centralised and decentralised exchanges; recent values can be revised as late exchange data arrives.
Get market cap history
Get the MVRV ratio
Get SOPR
Get active address counts
Get transaction counts
Get circulating supply
Get exchange balances
Get futures open interest
Get perpetual funding rates
List assets
- Metadata calls use no data credits; they have their own 1200 requests/minute limit.
List metric paths
- Paths come without the /v1/metrics prefix; call GET /v1/metrics{path} for the data.
Describe a metric
- Call this before an unfamiliar metric: each one accepts a different set of assets, resolutions and drill-downs.