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

# Coin OHLC Chart by ID

`GET /coins/{id}/ohlc`

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

## Path parameters

- `id` string, required

## Query parameters

- `vs_currency` string, required
- `days` '1' | '7' | '14' | '30' | '90' | '180' | '365' | 'max', required
- `interval` 'daily' | 'hourly'
- `precision` 'full' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18'

## Response `200`

Coin OHLC chart data

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

---

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