💼 Coin OHLC Chart within Time Range by ID
URL: llms-txt#💼-coin-ohlc-chart-within-time-range-by-id
Source: https://docs.coingecko.com/reference/coins-id-ohlc-range
reference/api-reference/coingecko-pro.json get /coins/{id}/ohlc/range 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
You may obtain the coin ID (API ID) via several ways:
- refers to respective coin page and find 'API ID'.
- refers to
/coins/listendpoint. - refers to google sheets here.
- For historical chart data with better granularity, you may consider using /coins/{
id}/market_chart endpoint. - Supports ISO date strings (
YYYY-MM-DDorYYYY-MM-DDTHH:MM, recommended for best compatibility) or UNIX timestamps.
The timestamp displayed in the payload (response) indicates the end (or close) time of the OHLC data.
- Interval Options:
- Daily Interval (
interval=daily):- up to 180 days per request/ 180 daily interval candles.
- Hourly Interval (
interval=hourly):- up to 31 days per request/ 744 hourly interval candles.
- Daily Interval (
- Data availability:
- Available from 9 February 2018 onwards (
1518147224epoch time).
- Available from 9 February 2018 onwards (
- Exclusive for Paid Plan Subscribers (Analyst, Lite, Pro and Enterprise).
- Cache / Update Frequency:
- Every 15 minutes for all the API plans.
- Interval Options: