Contents

Price candles (OHLC)

Price candles (OHLC) of a Hyperliquid coin, oldest first.

GET/api/v1/candles/{coin}Every key

Description

Live buckets come from 30-second Hyperliquid mark samples (price: "mark", no volume); history before that from trade candles (Binance perpetual for coins listed there, else Hyperliquid) with volume (volumeUsd = quote volume where the venue reports it, volumeBase in Hyperliquid units, volumeVenue). Gaps stay gaps; complete: false marks a bucket with missing samples or the one still forming. from is clamped to the plan history, to to now minus the feed delay. Licence review: candles made only of Binance trades are left out (gaps) and mixed ones lose the Binance volume; coins without a Hyperliquid market answer 403 source_restricted (meta.restricted).

Who can call it

Available with every key and keyless (X-Blockmetric-Access: public). Keys of Free accounts get free-tier data (real-time feeds, 30 days of history, heatmap over time for every coin over the last 24 hours, liquidation levels now for every coin, the same as the free web plan); Pro and Desk keys the data of their plan; API Dev / API Pro raise the limits.

No key
24 h
Free
30 days
Pro
365 days
Desk
1095 days
API Dev
365 days
API Pro
1095 days

History window per plan. Limits: Authentication & limits.

Parameters

Parameters of /candles/{coin}
ParameterDescription
coinstring · pathrequiredCoin name, e.g. BTC or xyz:TSLA (case-insensitive).
tfstringCandle timeframe: 5m, 15m, 1h (default), 4h or 1d (UTC-aligned). 5m and 15m reach back 35 days (our 5-minute samples and 5-minute trade candles are kept that long, then hourly); older 5m / 15m buckets are gaps, so use 1h or coarser.one of 5m, 15m, 1h, 4h, 1d · default 1h
fromstringStart (ISO 8601, optional; default: `limit` candles before `to`).ISO 8601, e.g. 2026-10-23T12:00:00Z
tostringEnd, exclusive (ISO 8601, optional; default now).ISO 8601, e.g. 2026-10-23T12:00:00Z
limitintegerNumber of items, default 500, clamped to 1–5000.1–5000 · default 500
fieldsstringComma-separated fields of every data.candles item to return, e.g. t,open,high,low,close (case-insensitive). All other fields are left out, so large lists get much smaller; an unknown name answers 400 with the list of fields. Default: every field.
formatstringjson (default: the { data, meta } envelope) | csv (the rows with a header line; nested values as JSON text) | ndjson (one JSON object per row and line). csv and ndjson carry the meta block in headers: Link rel="next" and X-Blockmetric-Next-Cursor (next page), X-Blockmetric-Next-After (forward polling), X-Blockmetric-Updated-At, X-Blockmetric-Warnings, X-Blockmetric-License. Errors stay JSON.one of json, csv, ndjson · default json

Response fields

Every success is { data, meta }; these are the fields of data. meta is the same on every endpoint.

Response fields of /candles/{coin}
FieldDescription
coinstringCoin name as on Hyperliquid (BTC, kPEPE, HIP-3 names like xyz:TSLA).
tf"5m" | "15m" | "1h" | "4h" | "1d"Bucket interval (5m, 15m, 1h, …).
candles[]array of objectsOldest → newest.
candles[].tstring (ISO 8601)Bucket start (UTC).
candles[].opennumberOpen price of the bucket.
candles[].highnumberHigh price of the bucket.
candles[].lownumberLow price of the bucket.
candles[].closenumberClose price of the bucket.
candles[].volumeUsdnumber · nullableTraded quote volume of the bucket where the venue reports it (USD).
candles[].volumeBasenumber · nullableTraded volume in base units (Hyperliquid units).
candles[].volumeVenue"binance" | "hyperliquid" · nullableVenue the volume was traded on.
candles[].price"mark" | "trades" | "mixed"mark = 30-second Hyperliquid mark samples, trades = trade candles of the volume venue, mixed = both within the bucket.
candles[].completebooleanfalse when samples are missing in the bucket, it is still forming, or part of its OHLC is derived (rows from before high/low/open were stored; hourly rows compacted after 35 days, whose sample count is not kept).

Errors

Code snippets in these docs are licensed under MIT-0: copy them into your own code without attribution. The SDKs, CLI and MCP server will be, once published, Apache-2.0; the name Blockmetric is not licensed (forks must be renamed). Data from the API is governed by the API terms; third-party exchange data by the exchange’s terms.

LiveHyperliquid markets 3sOperationalHyperliquid positions & whales 4sOperationalLiquidation heatmap & levels 8sOperationalLighter markets & liquidations 2sOperationalLighter positions & heatmap 7sOperationalLighter RH positions & heatmap 5sOperationalBinance markets 52sOperationalBybit markets 22sOperationalBinance liquidations 31sOperationalBybit liquidations 31sOperationaldYdX positions & heatmap 10sOperationalGMX positions & heatmap 13sOperationalLong/short & open interest history 14sOperationalOrder books & trade flow 6sOperationalOn-chain transfers 6sOperationalSecurity monitor 1mOperationalBlockmetric Sentiment 9mOperationalOfficial news 8mOperationalAlert delivery 3sOperational10:06:49 UTCData: Blockmetric Research · Binance · Bybit