Short answer
Each Hyperliquid candle is an object: t open time and T close time (Unix milliseconds), s coin, i interval, o/h/l/c prices as strings, v volume in the base asset (not USD) and n the number of trades. Timestamps are UTC, and T is t plus the interval minus 1 ms.
Field by field
| Field | Meaning | Example (BTC 1m) |
|---|---|---|
t | Open time, ms | 1796269740000 |
T | Close time, ms (open + 60,000 - 1 for 1m) | 1796269799999 |
s | Coin: BTC, @107 (spot) or xyz:NVDA (HIP-3) | "BTC" |
i | Interval | "1m" |
o, h, l, c | Open, high, low, close as decimal strings | "59384.0" |
v | Volume in base units (BTC here) | "3.04795" |
n | Number of trades, an integer | 91 |
The field list is from the websocket Candle type ("v: string; // volume (base unit)"); the example row is from a live candleSnapshot call on 2026-12-03, which returns the same fields.
Common mistakes
- Treating
vas USD. Multiply by a price for an approximate USDC notional; the exact notional needs the trades. - Keying on
T. Most backtesting tools index candles by open time; uset. - Case-insensitive JSON decoding.
tandTdiffer only by case. Decoders that match keys case-insensitively, such as Go'sencoding/json, can fill a field taggedtwithT, shifting every candle by one interval. - Doing math on strings. Prices and volume arrive as strings to keep their precision; convert them to floats or decimals first.
The same candle from TikTape
TikTape's GET /api/v1/ohlcv returns compact rows: [timestamp_ms, open, high, low, close, volume], where timestamp_ms is Hyperliquid's t, the open time, and volume is the same base-asset volume. It drops T, s, i and n and serves the rows past Hyperliquid's 5,000-candle window:
curl -H "X-API-Key: $TIKTAPE_API_KEY" \
"https://tiktape.xyz/api/v1/ohlcv?coin=BTC&interval=1m&limit=3"