Coin Historical Chart Data within Time Range by ID
To get the historical chart data of a coin within certain time range in UNIX along with price, market cap and 24hrs volume based on particular coin ID
Notes
- Find a coinβs API ID on its CoinGecko page, via Coins List, or this Google Sheet.
- Accepts ISO date strings (
YYYY-MM-DDorYYYY-MM-DDTHH:MM, recommended) or UNIX timestamps forfromandto. - Auto-granularity when
intervalis not specified:- 1 day from current time = 5-minutely data
- 1 day from any other time = hourly data
- 2β90 days = hourly data
- Above 90 days = daily data (00:00 UTC)
- Override with the
intervalparameter:daily: daily historical datahourly: hourly data, up to any 100 days per request5m: 5-minutely data, up to any 10 days per request (Enterprise only)
- Data availability:
5mfrom 9 Feb 2018,hourlyfrom 30 Jan 2018.
SDK Examples
Authorizations
Learn how to set up your API key
Path Parameters
Coin ID.
*refers to /coins/list.
Query Parameters
Target currency of market data.
*refers to /simple/supported_vs_currencies.
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, leave empty for auto granularity.
5m, hourly, daily Decimal place for currency price value.
full, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 Response
Coin historical chart data within time range

