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 freeOHLCV klines for major native crypto assets (SOL, BTC, ETH, BNB)
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | path | string | required | Major coin ticker: SOL, BTC, ETH, BNB default: SOLexample: SOL |
interval | query | string | optional | Bar interval default: 1hexample: 1h |
end | query | integer | optional | End timestamp in milliseconds default: 1795628431579example: 1795628431579 |
limit | query | integer | optional | Number of bars default: 50example: 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"