Liquidations by price
Where the liquidations of one coin happened: USD of liquidated longs and shorts per price step.
/api/v1/liquidations/by-priceEvery keyDescription
Where the liquidations of one coin happened, per price step: the stored liquidation prints of every venue the API serves (Hyperliquid, Lighter and the exchanges), summed per step with longs and shorts apart (the side of the liquidated position), the price now, and halfBand, the narrowest price range that holds at least half of the USD of the window. Every number is the sum of stored prints; nothing is modelled. On Binance at most the largest liquidation of a symbol per second is visible, so its amounts are a lower bound. Rows run from the lowest to the highest price with the empty steps as zeros; the thinnest 0.5 % of the USD at each end of the range is counted in the totals (outsideUsd, outsideCount) but not drawn as rows, so one stray print does not stretch the range. step=auto (the default) picks a round step that gives about 40 rows, as the chart on the coin page; a number asks for a step of its own, used as a whole multiple of the coin's base step (about 0.1 % of the price) with at most 500 rows (meta.warnings names a change). The window starts at the whole hour hours back (never before the plan history, meta.access.historyFrom) and ends at the start of the current minute; single prints are kept 120 days and the window reaches 90 days: keyless 24 h, free key 30 days, Pro, Desk and the API plans 90 days. venues lists every venue with prints in the window, also when venue picks one. Exchange data: values per exchange of Binance, Bybit, Gate, HTX, KuCoin and Aster are returned (single liquidations, prints, order books, tickers, funding and ratios per exchange, exchange candles, sums per venue), as collected and without warranty. We may withhold a venue at any time: then its rows and its own sums are left out, asking for it answers 403 source_restricted, meta.restricted lists it, and sums over several venues stay. meta.restricted is absent while nothing is withheld.
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 30 days, 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. Paid keys read the plan's history, the same on monthly and yearly billing: GET /me states the days.
- No key
- 24 h
- Free
- 30 days
- Pro
- 1 year
- Desk
- 3 years
- API Dev
- 1 year
- API Pro
- 3 years
History window per plan. Limits: Authentication & limits.
Parameters
| Parameter | Description |
|---|---|
coinstringrequired | Coin name as on Hyperliquid or an exchange form (BTC, ETH, kPEPE, xyz:TSLA, BTCUSDT); case-insensitive. Required. 404 for an unknown coin; a known coin without stored prints answers empty rows.e.g. BTC |
hoursinteger | Window in hours, default 24, clamped to 1–2160 (90 days) and to the plan history (keyless 24 h, free key 30 days, Pro, Desk and the API plans 90 days). Also as 24h, 7d, 30d or 90d.1–2160 · default 24 · e.g. 24 |
fromstring | Window start (ISO 8601 or a plain date), instead of hours: the window is the whole hours from it to now, rounded up. Send from or hours, not both. Clamped like hours (meta.warnings names from).ISO 8601 (UTC), e.g. 2026-10-23T12:00:00Z or 2026-10-23 |
venuestring | all (default) | hyperliquid | lighter | binance | bybit | gate | htx: only the prints of this venue. A switched-off venue answers 400, a withheld one 403 source_restricted.one of all, hyperliquid, lighter, binance, bybit, gate, htx · default all |
stepstring | auto (default: a round step for about 40 rows) or a price step in USD, e.g. 250 or 0.5, used as a whole multiple of the base step of the coin (about 0.1 % of the price) with at most 500 rows; data.step is the step used.≥ 0 · default auto · e.g. 250 |
Response fields
Every success is { data, meta }; these are the fields of data. meta is the same on every endpoint.
coinstringCoin name as on Hyperliquid (BTC, kPEPE, HIP-3 names like xyz:TSLA).
hoursintegerWindow in hours as applied (clamped to 90 days and to the plan history; meta.warnings says so).
fromstring (ISO 8601)Window start: the whole hour `hours` back, never before the plan history (meta.access.historyFrom).
tostring (ISO 8601)Window end, exclusive: the start of the current minute.
priceNownumber · nullableNewest mark price of the coin on a venue the API serves (Hyperliquid first, else the largest open interest); null when none has one.
stepnumber · nullablePrice step of the rows in USD: each row covers priceLow up to priceHigh. null when no print of the coin is stored in the window.
venuestringThe venue filter of the request: all or one venue.
venues[]array of objectsEvery venue the API serves with prints in the window, also when venue picks one; most USD first.venues[].venuestringTrading venue the row comes from.venues[].usdnumberLiquidated (USD).venues[].countintegerNumber of items (liquidations, positions …) in the group.
totalsobjectEvery print of the window (of the venue filter), the ones outside the rows included.
Show the 6 fields of
totalstotals.longUsdnumberLiquidated longs (USD).totals.shortUsdnumberLiquidated shorts (USD).totals.unknownUsdnumberPrints without a side (USD).totals.countintegerPrints in the window.totals.outsideUsdnumberPrints at the thin ends of the price range (0.5 % of the USD at each end): counted in the totals, not drawn as rows (USD).totals.outsideCountintegerPrints at the thin ends of the price range.
halfBandobject · nullableThe narrowest run of rows that holds at least half of the USD of the window (the prints outside the rows included); null without prints.
Show the 5 fields of
halfBandhalfBand.lownumberLower edge of the band.halfBand.highnumberUpper edge of the band (exclusive).halfBand.sharenumberShare of the USD of the window inside the band, fraction (at least 0.5).halfBand.longUsdnumberLiquidated longs in the band (USD).halfBand.shortUsdnumberLiquidated shorts in the band (USD).
rows[]array of objectsOne row per price step, lowest price first; a step without prints is a row of zeros.
Show the 7 fields of
rows[]rows[].priceLownumberLower edge of the price step (inclusive).rows[].priceHighnumberUpper edge of the price step (exclusive).rows[].longUsdnumberLiquidated longs (USD).rows[].shortUsdnumberLiquidated shorts (USD).rows[].unknownUsdnumberPrints without a side (USD).rows[].longCountintegerPrints of liquidated longs.rows[].shortCountintegerPrints of liquidated shorts.
Errors
- 400
invalid_paramInvalid parameter - 401
unauthorizedMissing or invalid API key - 401
key_requiredKeyless trial used up: a key is required - 403
plan_requiredPlan does not include this - 403
scope_requiredKey not scoped for this API - 403
ip_not_allowedAddress not on the IP allowlist of the key - 403
origin_not_allowedKey used from a browser origin it does not allow - 403
source_restrictedExchange withheld - 403
linked_accountKey of a linked free account paused - 403
https_requiredhttps required - 404
not_foundNot found - 429
rate_limitedPer-minute limit reachedretry - 429
daily_limit_exceededDaily limit reachedretry - 429
stream_limitToo many open streamsretry - 500
internal_errorInternal errorretry
Methodology
- Liquidations (reported totals) (how it is computed and its limits)
Code snippets in these docs are licensed under MIT-0: copy them into your own code without attribution. The SDKs, CLI and MCP server are 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.