💼 Coin OHLC Chart within Time Range by ID
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 timestamps based on particular coin ID
GET
💼 Coin OHLC Chart within Time Range by ID
Documentation Index
Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
Use this file to discover all available pages before exploring further.
Note
- 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.
Authorizations
Path Parameters
coin ID
*refers to /coins/list.
Example:
"bitcoin"
Query Parameters
target currency of price data
*refers to /simple/supported_vs_currencies.
Example:
"usd"
starting date in ISO date string (YYYY-MM-DD or YYYY-MM-DDTHH:MM) or UNIX timestamp.
use ISO date string for best compatibility
ending date in ISO date string (YYYY-MM-DD or YYYY-MM-DDTHH:MM) or UNIX timestamp.
use ISO date string for best compatibility
data interval
Available options:
daily, hourly Response
200 - application/json
Get coin's OHLC within time range
Example:
[
[1709395200000, 61942, 62211, 61721, 61845],
[1709409600000, 61828, 62139, 61726, 62139],
[1709424000000, 62171, 62210, 61821, 62068]
]
