Coin Historical Chart Data within Time Range by ID
This endpoint allows you to get the historical chart data of a coin within certain time range in UNIX along with price, market cap and 24hr volume based on particular coin ID
Documentation Index
Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
Use this file to discover all available pages before exploring further.
Note
- You may leave the interval params empty for automatic granularity:
- 1 day from current time = 5-minutely data
- 1 day from any time (except current time) = hourly data
- 2 - 90 days from any time = hourly data
- above 90 days from any time = daily data (00:00 UTC)
- You may bypass the interval auto-granularity, by specifying the
intervalparameter:interval=daily: daily historical data.interval=hourly: hourly historical data, up to any 100 days date range per request.interval=5m: 5-minutely historical data, up to any 10 days date range per request.interval=5mis exclusive for Enterprise subscribers only.
- Data availability:
interval=5m: Available from 9 February 2018 onwards.interval=hourly: Available from 30 Jan 2018 onwards.
- Cache / Update Frequency:
Based on days range (all the API plans)- 1 day = 30 seconds cache
- 2 - 90 days = 30 minutes cache
- above 90 days = 12 hours cache
- The last completed UTC day (00:00) is available 35 minutes after midnight on the next UTC day (00:35). The cache will always expire at 00:40 UTC.
Authorizations
Path Parameters
coin ID
*refers to /coins/list.
"bitcoin"
Query Parameters
target currency of market data
*refers to /simple/supported_vs_currencies.
"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, 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 
