Coin Historical Chart Data by ID
Coins
Coin Historical Chart Data by ID
This endpoint allows you to get the historical chart data of a coin including time in UNIX, price, market cap and 24hr volume based on particular coin ID
GET
Coin Historical Chart Data by 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
- 2 - 90 days from current time = hourly data
- above 90 days from current 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 the past 100 days.interval=5m: 5-minutely historical data, up to the past 10 days.interval=5mis exclusive for Enterprise subscribers only.
- Cache / Update Frequency:
- Every 30 seconds for all the API plans (for last data point).
- The last completed UTC day (00:00) data is now available 10 minutes after midnight on the next UTC day (00:10).
- Access to historical data via the Public API (Demo plan) is restricted to the past 365 days only. To access the complete range of historical data, please subscribe to one of our paid plans to obtain a Pro-API key.
Authorizations
Path Parameters
coin ID
*refers to /coins/list.
Example:
"bitcoin"
Query Parameters
target currency of market data
*refers to /simple/supported_vs_currencies.
Example:
"usd"
data up to number of days ago You may use any integer for number of days
data interval, leave empty for auto granularity
Available options:
daily, hourly decimal place for currency price value
Available options:
full, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 
