Coin OHLC Chart within Time Range by ID
Changed onTo 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
Request
- Base URLhttps://pro-api.coingecko.com/api/v3
- Auth
- API key in header x-cg-pro-api-key
- or API key in query parameter x_cg_pro_api_key
Path parameters
idstring required
Coin ID. *refers to /coins/list.
Query parameters
vs_currencystring required
Target currency of price data. *refers to /simple/supported_vs_currencies.
fromstring required
Starting date in ISO date string (YYYY-MM-DD or YYYY-MM-DDTHH:MM) or UNIX timestamp. Use ISO date string for best compatibility.
tostring required
Ending date in ISO date string (YYYY-MM-DD or YYYY-MM-DDTHH:MM) or UNIX timestamp. Use ISO date string for best compatibility.
interval'daily' | 'hourly' required
Data interval.
Response
Coin OHLC chart data within time range
Changes
- info
api tag
Coinsremoved
- info
- info
for the
queryrequest parameterfrom, the type was generalized fromnumbertostring - info
for the
queryrequest parameterto, the type was generalized fromnumbertostring
- info