Coins
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
get/coins/{id}/market_chart/range
Path parameters
idstring required
Example:bitcoin
coin ID <br> *refers to /coins/list.
Query parameters
vs_currencystring required
Example:usd
target currency of market data <br> *refers to /simple/supported_vs_currencies.
fromnumber required
starting date in UNIX timestamp
tonumber required
ending date in UNIX timestamp
interval'5m' | 'hourly' | 'daily'
data interval, leave empty for auto granularity
precision'full' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18'
decimal place for currency price value
Response
Get historical market data include price, market cap, and 24hr volume (granularity auto)
Example response
{
"prices": [
[
1704067241331,
42261.0406175669
],
[
1704070847420,
42493.2764087546
],
[
1704074443652,
42654.0731066594
]
],
"market_caps": [
[
1704067241331,
827596236151.196
],
[
1704070847420,
831531023621.411
],
[
1704074443652,
835499399014.932
]
],
"total_volumes": [
[
1704067241331,
14305769170.9498
],
[
1704070847420,
14130205376.1709
],
[
1704074443652,
13697382902.2424
]
]
}