---
title: "Coin OHLC Chart within Time Range by ID"
method: GET
path: "/coins/{id}/ohlc/range"
---

# Coin OHLC Chart within Time Range by ID

`GET /coins/{id}/ohlc/range`

To get the OHLC chart (Open, High, Low, Close) of a coin within a range of timestamp based on particular coin ID

## Path parameters

- `id` string, required

## Query parameters

- `vs_currency` string, required
- `from` string, required
- `to` string, required
- `interval` 'daily' | 'hourly', required

## Response `200`

Coin OHLC chart data within time range

- array[] — OHLC data points as [timestamp, open, high, low, close] arrays
  - number[]

## Changes

- **2026-05-28** `11cc9e00fd86` — 1 info
  - api tag `Coins` removed
- **2025-09-22** `91c83447321b` — 2 info
  - for the `query` request parameter `from`, the type/format was generalized from `number`/`` to `string`/``
  - for the `query` request parameter `to`, the type/format was generalized from `number`/`` to `string`/``

[Change history](https://skmtc.dev/coingecko/apis/coingecko-api/changes/coins/:id/ohlc/range/get.md)

---

[API](https://skmtc.dev/coingecko/apis/coingecko-api.md) · [All operations](https://skmtc.dev/coingecko/apis/coingecko-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coingecko/coingecko-api/revisions/006c13c1a566/schema)
