---
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[]

---

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