Coins
๐ผ Coin OHLC Chart within Time Range by ID
This endpoint allows you to get the OHLC chart (Open, High, Low, Close) of a coin within a range of timestamp based on particular coin ID
get/coins/{id}/ohlc/range
Path parameters
idstring required
Example:bitcoin
coin ID <br> *refers to /coins/list.
Query parameters
vs_currencystring required
Example:usd
target currency of price data <br> *refers to /simple/supported_vs_currencies.
fromnumber required
starting date in UNIX timestamp
tonumber required
ending date in UNIX timestamp
interval'daily' | 'hourly' required
data interval
Response
Get coin's OHLC within time range
Example response
[
[
1709395200000,
61942,
62211,
61721,
61845
],
[
1709409600000,
61828,
62139,
61726,
62139
],
[
1709424000000,
62171,
62210,
61821,
62068
]
]