GET /api/v1/crypto_kline/crypto/{symbol}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/gmgn/api/v1/crypto_kline/crypto/{symbol}Cache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

OHLCV klines for major native crypto assets (SOL, BTC, ETH, BNB)

Parameters

nameintypedescription
symbolpathstringrequiredMajor coin ticker: SOL, BTC, ETH, BNB
default: SOL
example: SOL
intervalquerystringoptionalBar interval
default: 1h
example: 1h
endqueryintegeroptionalEnd timestamp in milliseconds
default: 1795628431579
example: 1795628431579
limitqueryintegeroptionalNumber of bars
default: 50
example: 50

Response

type: object
pagination: none
sample: {
  "list": "list(50)"
}

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/gmgn/api/v1/crypto_kline/crypto/SOL?interval=1h&end=1795628431579&limit=50"