GET /capi/api/price

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/coinglass/capi/api/priceCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

Historical OHLC price series for a coin

Parameters

nameintypedescription
symbolquerystringrequiredBase coin ticker symbol, e.g. BTC or ETH
default: BTC
example: BTC
intervalquerystringoptionalCandle interval: 1m, 5m, 15m, 1h, 4h, 1d
default: 1h
example: 1h

Response

type: array
pagination: none
sample: [
  [
    1792029600,
    "81640",
    "81814.01",
    "80226.35",
    "81538.01",
    "268480408.3693"
  ],
  [
    1792033200,
    "81538.01",
    "81555.95",
    "80740",
    "80928",
    "74161080.5306"
  ],
  [
    1792036800,
    "80928",
    "81743.61",
    "80850",
    "81597.32",
    "68174209.2924"
  ]
]

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/coinglass/capi/api/price?symbol=BTC&interval=1h"