---
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` number, required
- `to` number, required
- `interval` 'daily' | 'hourly', required

## Response `200`

Get coin's OHLC within time range

- array[]
  - number[]

---

[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/0484eb6fcafa/schema)
