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

# Coin OHLC Chart by ID

`GET /coins/{id}/ohlc`

This endpoint allows you 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`

Get coin's OHLC

- 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)
