POST /info/candleSnapshot
Auth X-Hub-Key from API_HUB_KEYExecute
POST /run/hyperliquid/info/candleSnapshotCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing freeOHLCV candle snapshot for one coin and interval, bounded by startTime/endTime (the most recent 5000 candles are available).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
coin | body | str | required | Exchange coin symbol. example: BTC |
interval | body | str1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 8h | 12h | 1d | 3d | 1w | 1M | required | Candle interval. example: 1h |
startTime | body | int | required | Start of the window in milliseconds since epoch. example: 1795861308822 |
endTime | body | int | required | End of the window in milliseconds since epoch. example: 1795882908822 |
Response
type: array
pagination: none
sample: {
"[0]": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sX POST "https://openapihub.dev/run/hyperliquid/info/candleSnapshot" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"coin": "BTC", "interval": "1h", "startTime": 1795861308822, "endTime": 1795882908822}'