How to get Candlestick/OHLC/Kline data using API?

Last updated: October 2, 2026

Does the CoinGecko API support OHLC/Candlestick/kline?

Yes. Use the /coins/{id}/ohlc endpoint and pass in relevant parameters. Note that the granularity of data returned is automatically determined and cannot be adjusted.

Reference: https://docs.coingecko.com/v3.0.1/reference/coins-id-ohlc