Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- This is the Data API (data-api.cryptocompare.com, also served at data-api.coindesk.com); the older min-api endpoints are not in this entry.
- Pairs are written BASE-QUOTE (BTC-USD). Index endpoints take an index family as market (cadli by default); spot endpoints take an exchange.
- List-valued inputs (instruments, assets, groups, categories) are comma-separated strings.
- Rate limits apply per second, minute, hour, day and month; going over returns 429.
Endpoints
Get the latest index price for crypto pairs
Get daily index candles for a pair
- Page backwards with to_ts: the oldest timestamp of one batch comes back again as the newest of the next, so step it back by one interval (86400 s daily, 3600 s hourly).
Get hourly index candles for a pair
- Page backwards with to_ts: the oldest timestamp of one batch comes back again as the newest of the next, so step it back by one interval (86400 s daily, 3600 s hourly).
Get the latest price on one exchange
Get daily candles for a pair on one exchange
- Page backwards with to_ts: the oldest timestamp of one batch comes back again as the newest of the next, so step it back by one interval (86400 s daily, 3600 s hourly).
Get asset profiles
Rank crypto assets
Search crypto assets
List the latest crypto news articles
Check the key’s rate limit
- Needs an API key, and the call itself counts against the limit; the X-RateLimit-* headers returned on responses give the same without a call.