API Reference
Log In
API Reference

Coin OHLC Chart by ID

This endpoint allows you to get the OHLC chart (Open, High, Low, Close) of a coin based on particular coin ID

👍

Tips

  • You may obtain the coin ID (API ID) via several ways:
    • refers to respective coin page and find ‘API ID’.
    • refers to /coins/list endpoint.
    • refers to Google Sheets here.
  • For historical chart data with better granularity, you may consider using /coins/{id}/market_chart endpoint.
📘

Notes

  • The timestamp displayed in the payload (response) indicates the end (or close) time of the OHLC data.
  • Data granularity (candle's body) is automatic:
    • 1 - 2 days: 30 minutes
    • 3 - 30 days: 4 hours
    • 31 days and beyond: 4 days
  • Cache / Update Frequency:
    • Every 15 minutes for all the API plans
    • The last completed UTC day (00:00) is available 35 minutes after midnight on the next UTC day (00:35).
  • Exclusive daily and hourly candle interval parameter for all paid plan subscribers (interval = daily, interval=hourly)
    • 'daily' interval is available for 1 / 7 / 14 / 30 / 90 / 180 days only.
    • 'hourly' interval is available for 1 / 7 / 14 / 30 / 90 days only.
Path Params
string
required

coin ID
*refers to /coins/list.

Query Params
string
required

target currency of price data
*refers to /simple/supported_vs_currencies.

string
enum
required

data up to number of days ago

string
enum

data interval, leave empty for auto granularity

Allowed:
string
enum

decimal place for currency price value

Response

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json