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

# 💼 Coin OHLC Chart within Time Range by ID

`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**

## Path parameters

- `id` string, required

## Query parameters

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

## Response `200`

Get coin's OHLC within time range

- array[]
  - number[]

## Changes

- **2025-09-22** `91c83447321b` — 2 info
  - for the `query` request parameter `from`, the type was generalized from `number` to `string`
  - for the `query` request parameter `to`, the type 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/e88de4e81cdb/schema)
