Tips
- You may obtain the coin ID (API ID) via several ways:
- refers to respective coin page and find ‘API ID’.
- refers to
/coins/list
endpoint. - refers to google sheets here.
- For historical chart data with better granularity, you may consider using /coins//market_chart endpoint.
- Supports ISO date strings (
YYYY-MM-DD
or
YYYY-MM-DDTHH:MM
, recommended for best compatibility) or UNIX timestamps.
Note
- The timestamp displayed in the payload (response) indicates the end (or close) time of the OHLC data.
- Interval Options:
- Daily Interval (
interval=daily
):- up to 180 days per request/ 180 daily interval candles.
- Hourly Interval (
interval=hourly
):- up to 31 days per request/ 744 hourly interval candles.
- Daily Interval (
- Data availability:
- Available from 9 February 2018 onwards (
1518147224
epoch time).
- Available from 9 February 2018 onwards (
- Exclusive for Paid Plan Subscribers (Analyst, Lite, Pro and Enterprise).
- Cache / Update Frequency:
- Every 15 minutes for all the API plans.
Authorizations
Path Parameters
coin ID
*refers to /coins/list
.
Example:
"bitcoin"
Query Parameters
target currency of price data
*refers to /simple/supported_vs_currencies
.
Example:
"usd"
starting date in ISO date string (YYYY-MM-DD
or YYYY-MM-DDTHH:MM
) or UNIX timestamp.
use ISO date string for best compatibility
ending date in ISO date string (YYYY-MM-DD
or YYYY-MM-DDTHH:MM
) or UNIX timestamp.
use ISO date string for best compatibility
data interval
Available options:
daily
, hourly
Response
200 - application/json
Get coin's OHLC within time range
The response is of type number[][]
.