Coin OHLC Chart by ID
Changed onTo get the OHLC chart (Open, High, Low, Close) of a coin based on particular coin ID
get/coins/{id}/ohlc
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.
days'1' | '7' | '14' | '30' | '90' | '180' | '365' | 'max' required
Data up to number of days ago.
interval'daily' | 'hourly'
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
Coin OHLC chart data
Changes
- info
api tag
Coinsremoved
- info