Liquidation stress test of a coin
Tracked positions whose liquidation price a move of 1 to 20 % reaches, next to the resting order book.
/api/v1/markets/{coin}/stressEvery keyThe same data on the website, no key needed: BTC liquidation heatmap.
Description
Liquidation stress test of one Hyperliquid coin (API 1.43.0): for moves of 1, 2, 5, 10 and 20 % down and up from the current mark, the notional of the tracked positions whose reported liquidation price lies between the mark and the moved price (longs for a fall, shorts for a rise), per band (from the previous move) and cumulative (from the mark), with the number of positions and wallets, share = usd / tracked notional of the coin (both sides), the largest positions with a link to the wallet page (url), and the resting orders of the stored Hyperliquid order book in the same range (depthUsd, bids for a fall and asks for a rise; depthComplete false = the stored book does not reach the end of the range; null without a stored book). hitRates: for the bands up to 10 %, past big liquidation clusters of this coin and side at that distance that the price reached within 24 hours (only from 10 scored observations of the coin; small: true below 30). state: ok, few (below the shared lower bound of a meaningful map, minimum), none (no tracked position within reach) or no_mark. excluded counts positions without a liquidation price, already past it, or more than 20 % away. Positions carried over for more than 3 hours without a read of their wallet are left out; a position is as old as its wallet's poll interval. Arithmetic over observed positions, not a forecast: positions can be closed, topped up or hedged before the price gets there, and cross-margin liquidation prices move with the account. Every key and keyless access: the largest position of each band. Pro, Desk and the API plans: up to limit positions per band and a custom move. depthUsd is part of the same plan detail, on every coin (free key and keyless: null with depthIncluded false).
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 |
|---|---|
coinstring · pathrequired | Coin name as on Hyperliquid, e.g. BTC or xyz:TSLA (case-insensitive). 404 for an exchange-only coin.e.g. BTC |
movenumber | A custom move in percent, e.g. -7.5 (a 7.5 % fall) or 3 (a 3 % rise), read on a 0.5 % grid up to ±20 % (meta.warnings clamped says when it was rounded); the answer adds data.custom with the cumulative figures and the largest positions of that move. Pro, Desk or an API plan; other keys get 403 plan_required.-20–20 · e.g. -7.5 |
limitinteger | Largest positions listed per band, default 5, clamped to 1–20. Pro, Desk or an API plan (other keys get one per band; sending limit answers 403 plan_required).1–20 · default 5 · e.g. 5 |
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).
marknumber · nullableHyperliquid mark now.
markAtstring (ISO 8601) · nullableTime of the mark.
asOfstring (ISO 8601) · nullableNewest read among the counted positions.
state"ok" | "few" | "none" | "no_mark"ok; few = below the shared lower bound of a meaningful map (minimum); none = no tracked position within reach; no_mark = no Hyperliquid mark.
minimumobjectThe shared lower bound below which state is few.minimum.mappedUsdnumberLeast notional with a reachable liquidation price (USD).minimum.positionsintegerLeast positions with a reachable liquidation price.
trackedobjectEvery current tracked position of the coin, with or without a liquidation price.
Show the 7 fields of
trackedtracked.positionsintegerCurrent tracked positions of the coin.tracked.walletsintegerTheir wallets.tracked.usdnumberTheir notional, both sides (USD).tracked.longUsdnumberLong notional (USD).tracked.shortUsdnumberShort notional (USD).tracked.openInterestUsdnumber · nullableHyperliquid open interest of the coin (USD, long plus short).tracked.coveragenumber · nullableusd / openInterestUsd, at most 1 (fraction).
mappedobjectPositions with a liquidation price on the side the price can reach it from (not already past it).mapped.positionsintegerPositions with a liquidation price the price can reach from the mark.mapped.usdnumberTheir notional (USD).
bands[]array of objectsMoves of 1, 2, 5, 10 and 20 % each way, ascending by move.
Show the 19 fields of
bands[]bands[].movenumberSigned move from the mark, fraction (-0.05 = a 5 % fall).bands[].pricenumbermark × (1 + move).bands[].sidestringThe side a move this way liquidates: long for a fall, short for a rise.bands[].bandobjectFrom the previous move of the same direction (or the mark) to this one.bands[].band.usdnumberNotional of the tracked positions whose liquidation price lies in the range (USD).bands[].band.positionsintegerThose positions.bands[].band.walletsintegerTheir wallets (one position per wallet and coin, so the same count on Hyperliquid).bands[].band.sharenumber · nullableusd / tracked notional of the coin, both sides (fraction).bands[].band.depthUsdnumber · nullableResting orders of the stored Hyperliquid order book in the same range (USD): bids for a fall, asks for a rise. null without a stored book or outside the plan (depthIncluded).bands[].band.depthCompleteboolean · nullablefalse = the stored book does not reach the end of the range, depthUsd counts what it shows.bands[].band.largest[]array of objectsThe largest of those positions, largest first (one per band without a plan with the list).bands[].cumulativeobjectFrom the mark to this move.bands[].cumulative.usdnumberNotional of the tracked positions whose liquidation price lies in the range (USD).bands[].cumulative.positionsintegerThose positions.bands[].cumulative.walletsintegerTheir wallets (one position per wallet and coin, so the same count on Hyperliquid).bands[].cumulative.sharenumber · nullableusd / tracked notional of the coin, both sides (fraction).bands[].cumulative.depthUsdnumber · nullableResting orders of the stored Hyperliquid order book in the same range (USD): bids for a fall, asks for a rise. null without a stored book or outside the plan (depthIncluded).bands[].cumulative.depthCompleteboolean · nullablefalse = the stored book does not reach the end of the range, depthUsd counts what it shows.bands[].cumulative.largest[]array of objectsThe largest of those positions, largest first (one per band without a plan with the list).
customobject · nullableThe custom move (move parameter), else null.
Show the 17 fields of
customcustom.movenumberThe custom move as read (signed fraction on the 0.5 % grid).custom.pricenumbermark × (1 + move).custom.sidestringlong or short.custom.usdnumberCumulative notional from the mark to the move (USD).custom.positionsintegerThose positions.custom.depthUsdnumber · nullableResting orders in the same range (USD).custom.depthCompleteboolean · nullablefalse = the stored book does not reach the end of the range.custom.largest[]array of objectsThe largest of those positions.custom.largest[].addressstringHyperliquid address, lowercase.custom.largest[].labelstring · nullableDisplay label of the wallet (a label with a cited source, else its self-chosen leaderboard name), or null.custom.largest[].sidestringlong or short.custom.largest[].positionUsdnumberPosition notional at the mark of the last read (USD).custom.largest[].liqPxnumber · nullableLiquidation price Hyperliquid reported at the last read.custom.largest[].leveragenumber · nullableLeverage as reported.custom.largest[].leverageTypestring · nullablecross | isolatedcustom.largest[].updatedAtstring (ISO 8601)When the wallet was last read.custom.largest[].urlstringThe wallet page on the website.
excludedobjectTracked positions no move within ±20 % reaches.
Show the 9 fields of
excludedexcluded.crossedobjectAlready past their liquidation price at this mark.excluded.crossed.positionsintegerNumber of positions.excluded.crossed.usdnumberNotional (USD).excluded.noLiqPxobjectNo liquidation price reported (the margin covers the position).excluded.noLiqPx.positionsintegerNumber of positions.excluded.noLiqPx.usdnumberNotional (USD).excluded.beyondobjectLiquidation price more than 20 % from the mark.excluded.beyond.positionsintegerNumber of positions.excluded.beyond.usdnumberNotional (USD).
bookobject · nullableThe Hyperliquid order book the depth comes from, null without one or outside the plan.book.venuestringhyperliquidbook.atstring (ISO 8601) · nullableTime of the stored book.book.lonumberLowest price the stored book covers.book.hinumberHighest price the stored book covers.
depthIncludedbooleanThe plan includes the book depth per band (Pro, Desk and the API plans; free key and keyless: not included). The same on every coin.
hitRates[]array of objectsPast measurement per band up to 10 %, only from 10 scored observations of this coin.
Show the 8 fields of
hitRates[]hitRates[].movenumberThe fixed move whose band this is (signed fraction).hitRates[].sidestringlong or short.hitRates[].rangestringDistance range of the band from the price, in percent ("2–5%").hitRates[].horizonHoursintegerHorizon of the measurement (24).hitRates[].nintegerScored past clusters of this coin and side in the range.hitRates[].reachedintegerOf those, reached by the price within the horizon.hitRates[].ratenumberreached / n (fraction). A past measurement, not a forecast.hitRates[].smallbooleann below 30.
hitSincestring (ISO 8601) · nullableFirst stored cluster observation of the coin.
planobjectWhat the plan of this caller includes.plan.largestPerBandintegerPositions listed per band for this caller.plan.customMovebooleanA custom move is part of the plan.
methodstringHow the numbers are computed.
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
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.