BlogDeveloper

Hyperliquid Liquidation Map: How to Build and Read One

How Hyperliquid liquidation prices are set, why any liquidation map is an estimate, and how to build one from open positions and read it with care.

HydromancerTeam
Hyperliquid Liquidation Map: How to Build and Read One

A Hyperliquid liquidation map is a chart of open positions grouped by estimated liquidation price, with longs below the current price and shorts above. Because every Hyperliquid position is on-chain, you build it from real positions rather than guesses about leverage.

Every liquidation map is still an estimate. Cross-margin accounts share collateral across positions, so funding, margin changes and other open trades shift liquidation prices before the mark price arrives.

In Reservoir's BTC snapshot of 8 October 2026, $50.1M of longs had liquidation prices within 1% below the price, while $20.0M of shorts sat within 1% above it. Those figures describe one moment, because positions open, close and move all the time.

Traders read a liquidation map to spot where forced market orders would cluster, and builders feed the same data into heatmaps, risk dashboards and whale trackers. It shows where forced orders would start, not whether the price will get there.

For the full 20-band BTC snapshot table, band-counting rules and code-run outputs behind this guide, jump to Test and Validation.

Why a liquidation map matters on Hyperliquid

Forced orders cluster at liquidation bands

When the mark price reaches a position's liquidation price, Hyperliquid sends market orders to the book to close it. A long's liquidation sells, and a short's liquidation buys.

If price reaches a band packed with leveraged positions, those forced orders add directly to the selling or buying already under way.

Every Hyperliquid position is public on-chain

Hyperliquid publishes every open position on-chain with its size, entry price and leverage. Because a position's liquidation price follows from those fields and the account's margin, you build the map from real positions instead of estimating leverage from open interest.

Wallet addresses show who sits behind each band

Every position in a snapshot carries the wallet that holds it. That lets you separate a crowd of small accounts from one oversized wallet, which a dollar total per band can't show you.

How traders and builders use liquidation maps

Traders read a liquidation map to see where leveraged positions crowd together and how far the price sits from them. Builders put the same position data into their own tools:

• A liquidation heatmap beside the price chart, in a trading terminal
• A check on how much long exposure a 5% drop would reach, in a risk dashboard
• The liquidation prices of the largest wallets, in a whale tracker

Hyperliquid liquidation map at a glance

BTC's map from Reservoir's snapshot of 8 October 2026 grouped 41,508 open positions by distance from the $83,256 snapshot price:

Distance from the price Long liquidations below (sell orders) Short liquidations above (buy orders)
Within 1%$50.1M$20.0M
Within 2%$100.5M$38.0M
Within 5%$236.1M$107.0M

Each row includes the rows above it. In that snapshot, $47.7M of the $50.1M in within-1% longs sat in a single 0.5% band at $82,423, while the nearest band at $82,840 held $2.4M.

Mirrored bar chart of BTC long liquidations below and short liquidations above the price within 1%, 2% and 5%, from one Reservoir snapshot

How Hyperliquid liquidation prices are set

A position is liquidated when account equity falls below maintenance margin. On Hyperliquid, maintenance margin is half the initial margin at the asset's maximum leverage, ranging from 1.25% at 40x maximum leverage to 16.7% at 3x.

The trigger is the mark price, not the last trade. Mark price combines external exchange prices with Hyperliquid's own book state, so a brief wick on the book alone may not liquidate anyone.

Isolated margin: leverage sets the liquidation price

An isolated position holds its own margin, kept apart from the rest of the account. Its liquidation price depends on how much margin you assign to it, which follows from the leverage you set.

Cross margin: the whole account sets the liquidation price

A cross position shares the whole account's collateral. Hyperliquid's docs state that its actual liquidation price does not depend on the leverage setting you pick.

A lower leverage setting simply reserves more collateral. Gains or losses on your other cross positions move the liquidation price too.

The official liquidation price formula

Hyperliquid publishes the exact formula:

code
liq_price = price - side * margin_available / position_size / (1 - l * side)

Here side is 1 for long and -1 for short, and l is 1 divided by the maintenance leverage. margin_available is account value minus maintenance margin required (cross), or isolated margin minus maintenance margin required (isolated).

Take an isolated 1 BTC long at $100,000 with $10,000 margin on a 40x asset, ignoring fees and funding. The maintenance rate is 1.25% (l is 0.0125), leaving $8,750 of available margin ($10,000 minus $1,250).

That puts the liquidation price at $100,000 minus $8,750 / 0.9875, or about $91,139.

What happens at the liquidation price

At the liquidation price, Hyperliquid first tries to close the position with market orders on the book. If that restores the account above maintenance margin, any remaining collateral stays with the trader.

For positions worth more than 100k USDC, only 20% goes to the book as a market liquidation order. A 30-second cooldown follows any partial-liquidation block, during which each market liquidation order for that trader covers the full position.

If equity drops below two-thirds of maintenance margin before the book can close the position, the liquidator vault (part of HLP) can take it over. The position transfers to the vault instead of selling on the book.

Why a Hyperliquid liquidation map is always an estimate

Every level on a liquidation map is a snapshot of a moving target. Six mechanisms shift it between snapshots.

Hourly funding payments shift position margin

Funding on Hyperliquid is paid every hour between longs and shorts, added to or deducted from each holder's balance. That changes the margin behind a position, moving its liquidation price every hour.

Cross positions move with the rest of the account

A cross position shares its margin with the trader's other cross positions. When those other trades gain or lose, its liquidation price shifts even if its own market hasn't moved.

Traders add margin or close before price arrives

A trader near liquidation can deposit collateral, add margin, trim or close at any time, including as price approaches. A dense cluster can thin out before the mark price reaches it.

Margin tiers raise maintenance rates on larger positions

On assets with margin tiers, a larger position gets lower maximum leverage and a higher maintenance rate. Because maintenance leverage depends on position value at the liquidation price, growing or shrinking the trade shifts that level.

Unified and portfolio-margin accounts share collateral

Unified and portfolio-margin accounts share collateral across markets. Because liquidation prices are calculated from account-wide margin, a move in one market can shift levels in another.

Every snapshot describes one moment

Every map comes from a snapshot of open positions at a single timestamp. A map from an hour ago describes an hour ago, so label the snapshot time on every chart you share.

How to get a Hyperliquid liquidation map

The recipe is the same regardless of data source: pull every open position in a market, drop rows without a valid liquidation price, bucket the rest by price and sum notional separately for longs and shorts.

Some positions have no meaningful liquidation price at all, such as a well-collateralized cross account. Both Hyperliquid's API and Reservoir return null for those rows, so skip them instead of plotting a zero.

Viewing large positions without code in Flowscan Terminal

Flowscan Terminal is a free Hyperliquid explorer built on Hydromancer data, with no sign-up required. Its Liqs view overlays liquidation prices of large positions on the price chart, with a minimum size filter from $100K to $10M.

That gives a trader a fast no-code view. To build your own map, or count smaller positions too, pull the position data directly.

Tracking one wallet with Hyperliquid's clearinghouseState

Hyperliquid's native API is free, needs no key and returns live liquidationPx values for one wallet per request, or null when none applies. That fits your own account or a short watchlist, not a whole market.

code
# Expected output: per open position: coin, size, entry price, liq. price
import requests

WALLET = "0x0000000000000000000000000000000000000000"  # your address
body = {"type": "clearinghouseState", "user": WALLET}
state = requests.post("https://api.hyperliquid.xyz/info", json=body).json()
for item in state["assetPositions"]:
    p = item["position"]
    print(p["coin"], p["szi"], p["entryPx"], p["liquidationPx"])

Calling clearinghouseState on one active public wallet returned three open positions (BTC, ETH and HYPE), all with liquidationPx set to None. Skipping nulls keeps well-collateralized cross accounts out of your zero bucket.

By default this covers Hyperliquid's own markets, and adding a dex field reads a HIP-3 exchange's markets instead. Because Hyperliquid's API has no endpoint that lists every position in a market, a whole-market map requires a snapshot source.

Building a daily map free from Reservoir's snapshots

Reservoir, Hydromancer's free S3 archive (CC BY 4.0, AWS requester pays), saves one snapshot of every open position per UTC day from July 2025. This query maps BTC in 0.5% bands within 5% of snapshot price, dropping null liquidation_price rows:

code
# Expected output: BTC 0.5% price bands, 2026-10-08: band, long_usd, short_usd
import duckdb
con = duckdb.connect()
con.execute("INSTALL httpfs; LOAD httpfs; SET s3_requester_pays = true;")
con.execute("CREATE SECRET (TYPE s3, PROVIDER credential_chain, "
            "REGION 'ap-northeast-1')")
DAY = ("s3://hydromancer-reservoir/by_dex/hyperliquid/snapshots/perp/"
       "date=2026-10-08/*.parquet")
con.sql(f"""WITH p AS (SELECT size, abs(notional) AS usd, liquidation_price
  AS liq FROM '{DAY}' WHERE market = 'BTC' AND liquidation_price > 0),
ref AS (SELECT median(usd / abs(size)) AS px FROM p)  -- price at snapshot
SELECT round(round(liq / (px * 0.005)) * px * 0.005) AS band,
  round(sum(usd) FILTER (size > 0)) AS long_usd,
  round(sum(usd) FILTER (size < 0)) AS short_usd
FROM p, ref WHERE abs(liq - px) < px * 0.0525
GROUP BY band ORDER BY band""").show()

That day's file held 41,508 BTC positions across 41,508 wallets around a $83,256 snapshot price. The output also included a $12.2M long in the $84,505 band, above the price, so keep long and short totals separate.

Snapshots are taken a few minutes after midnight UTC, so check the timestamp in milliseconds inside the file name ({block}_{timestamp}.parquet) before matching a map to a price move.

Some dates are missing, including late October to mid-December 2025. Setup and transfer costs are covered in How to Query Reservoir's Hyperliquid Data.

Refreshing intraday maps with Hydromancer's perpSnapshots

For a map that refreshes during the day, Hydromancer's perpSnapshots returns every open position in the markets you request. Each position carries eight values, including size, notional_size, leverage_type_flag and liquidation_price.

This reuses get_positions from How to View Entire Trader Positioning on Hyperliquid for zstd and MessagePack decoding. Install msgpack and zstandard, set HYDROMANCER_API_KEY (with the Market data snapshots add-on), and fetch the mid price from Hyperliquid:

code
# Expected output: up to 21 lines: band price, long $ below mid, short $ above
import math, requests
from collections import defaultdict
from positions import get_positions  # needs HYDROMANCER_API_KEY set

mid = float(requests.post("https://api.hyperliquid.xyz/info",
                          json={"type": "allMids"}).json()["BTC"])
step, bands = mid * 0.005, defaultdict(lambda: [0.0, 0.0])
for r in get_positions(["BTC"]):
    liq = r["liquidation_price"]
    if liq and math.isfinite(liq) and abs(liq - mid) <= mid * 0.0525:
        band = round(liq / step) * step
        bands[band][0 if r["size"] > 0 else 1] += abs(r["notional_size"])
for band, (longs, shorts) in sorted(bands.items()):
    print(f"{band:>10,.0f}  long ${longs:>14,.0f}  short ${shorts:>14,.0f}")

Poll perpSnapshotTimestamp first and download only when the snapshot ID changes. The docs suggest checking every 5 to 10 seconds, since a full snapshot runs from about 1 MB to over 13 MB.

Hyperliquid API vs Hydromancer API, side by side

The two requests answer different questions. Hyperliquid's tells you where one wallet would be liquidated, while Hydromancer's tells you where every position in a market would be.

Hyperliquid API Hydromancer API
RequestclearinghouseStateperpSnapshots
What comes backOne wallet's open positions,
each with liquidationPx
Every open position in the
markets you ask for, each
with liquidation_price and
its wallet
What you need firstThe wallet's addressThe market names, or ALL
Covered by one requestOne walletOne market, several, or
every market on every DEX
Documented limitWeight 2 of 1,200
per minute per IP
5 requests per 10 minutes;
poll perpSnapshotTimestamp
first (5 to 10 seconds is
usually enough)
KeyNoneAPI key and the Market
data snapshots add-on
ReplyJSONzstd-compressed
MessagePack, about 1
MB to more than 13 MB
FitsYour own account, or
a short watchlist
A whole market's map,
refreshed during the day

Going further: heatmaps, stop orders and past liquidations

Stacking maps over time into a liquidation heatmap

A liquidation heatmap stacks many snapshots over time so you can watch clusters form, shift and disappear. Record one map per snapshot and plot time horizontally with price on the vertical axis.

The plotting side follows the same pattern as an order book heatmap.

Setting stop-loss and take-profit levels beside liquidations

Stop-loss and take-profit orders also wait at known prices, so they're easy to confuse with liquidation levels. The difference is who chose the price and what decides whether it fires.

Liquidation levels TP/SL trigger levels
Who chose the priceNobody. It falls
out of margin math
The trader
SourceOpen positions
(perpSnapshots,
Reservoir snapshots)
Untriggered trigger orders
(tpslBook, tpslUpdates)
TriggerMark price vs
maintenance margin
Mark price vs trigger price
Moves whenFunding, margin, other
positions change
The trader edits or cancels
Size certaintyPartial liquidation and
backstop can change
what hits the book
Order size is known
(or the full position
for position TP/SL)

Hydromancer's tpslBook returns every untriggered TP/SL order across all markets, updated every block. A stop below price sells, while a short's take-profit below price buys, so a fall can set off both.

Hyperliquid's docs also recommend a stop-loss to exit before liquidation, placing that stop between the current price and the owner's liquidation price. For reading stop clusters, see Hyperliquid Stop-Loss: Guide for Traders & Builders.

Checking a past map against realized liquidations

To see how a past liquidation map held up, compare its bands against what was actually liquidated. Realized liquidations are covered in Hyperliquid Liquidation Data: How It Works and the API and the Hyperliquid liquidations page.

Where Hydromancer fits

How much infrastructure you need depends on how many positions you watch. If you only track your own wallets, Hyperliquid's API is enough: you don't need Hydromancer for that, and we'd rather say so.

If one map a day is enough, Reservoir's snapshots are free under CC BY 4.0 and AWS bills only transfer charges. A whole-market map that refreshes during the day is where perpSnapshots comes in.

You need Without Hydromancer With Hydromancer
Liquidation prices for a few wallets (live)Native clearinghouseState,
one wallet per request
(free, weight 2 of
1,200/min per IP)
batchClearinghouseStates,
up to 1,000 wallets
per request (API key)
Every position in a market, refreshed during the dayNot available from
the native API
perpSnapshots,
latest snapshot via
perpSnapshotTimestamp
(Market data
snapshots add-on on
top of an API plan)
Every position, one snapshot per UTC day (from July 2025)Not available from
the native API
Reservoir daily snapshots,
free under CC BY 4.0 (AWS
requester pays)
Every TP/SL trigger orderOne wallet's open
orders at a time
tpslBook and
tpslUpdates (API key)

Live REST and WebSocket data requires an API key on a paid plan, which the docs say starts at $300 a month. perpSnapshots is an add-on bought separately; see pricing.

What to know before you read a liquidation map

A cluster shows what would be forced to trade if the price got there. It doesn't say the price will get there, or which way the market will move.

Check the dollar value alongside the position count

A band's position count and its dollar value can tell different stories. Many small positions and one large wallet can look the same in a count, so check both before calling a level heavy.

Compare a cluster with the order book's depth

Liquidations hit the book as market orders, so their impact depends on what is resting there. $20M of liquidations against a thick book behaves very differently from $20M against a thin one.

Allow for the liquidator vault in deep drops

A position taken over by the liquidator vault transfers to the vault rather than selling on the book. In a deep drop, a liquidation map can overstate how much selling actually reaches the order book.

Weigh near bands above far ones

A band 1% from the mark price is far closer to firing than one 15% away. Distant bands have much more time to shift through hourly funding, margin changes and traders closing early.

Next steps

• Build the live version with Hydromancer's perpSnapshots docs.
• Put stop orders beside your map with Hyperliquid Stop-Loss: Guide for Traders & Builders.
• Run the first code block on your own wallet to see the liquidation price, or null, that everyone else can see.

Test and Validation

The map in this article comes from Reservoir's perp position snapshot for 8 October 2026, read on 19 November 2026 with the Reservoir code above. That date's folder held a single file, taken at 00:07:45 UTC.

The file held 41,508 BTC positions for 41,508 wallets, so no position was counted twice. The price at the snapshot, worked out as the median of notional value divided by size, was $83,256, in line with BTC's order book at 00:07 UTC.

How each band was counted

Each position went into the nearest 0.5% band, adding its notional value to the long or short total. Positions with null or zero liquidation prices were excluded, along with liquidation prices more than 5.25% from the snapshot price.

The at-a-glance table adds up the bands whose midpoint lies within 1%, 2% and 5% of the price. Bands are 0.5% wide, so each row's edge is good to about 0.25%.

One long position, worth about $12.2 million, had a liquidation price of 84,310, above the price. It shows in the 84,505 band below, and the table's long column leaves it out, since that column counts only liquidations below the price.

The full BTC map
Band price (USD) Long liquidations (USD) Short liquidations (USD)
79,09347,750,2270
79,50918,396,8280
79,92613,777,0750
80,3428,902,7010
80,75830,087,6620
81,17516,665,9220
81,59126,755,2330
82,00723,658,7240
82,42347,720,6760
82,8402,403,7200
83,672077,505
84,089019,949,994
84,50512,176,27210,471,964
84,92107,470,556
85,337011,156,519
85,754010,769,534
86,170036,385,525
86,58603,110,999
87,00305,517,873
87,41902,137,487
The other code blocks

The clearinghouseState code ran on 19 November 2026 for a public wallet taken from Hyperliquid's recent trades. It returned three positions, BTC, ETH and HYPE, each with a liquidationPx of None.

The perpSnapshots code ran the same day, with a key holding the add-on, and printed 19 bands from 60,440 to 66,803. Longs sat below the price and shorts above, as in the Reservoir map.

FAQ

What is a Hyperliquid liquidation map?

It's a chart of open positions grouped by estimated liquidation price, with long liquidations below the current price and short liquidations above. Each band shows how much notional would be forced to close if the mark price reached it.

How accurate is a Hyperliquid liquidation map?

It's as accurate as its snapshot, and only for that moment. Funding, margin changes, other positions in cross accounts and traders closing early all move liquidation prices.

Use it as a picture of exposure at one moment, not a forecast.

Is a liquidation heatmap the same as a liquidation map?

Usually a heatmap is many maps stacked over time, so you can see clusters form, move and disappear. A single map is one snapshot.

Both rest on the same position data.

Does price get pulled toward liquidation clusters?

There's no rule that it does. A cluster shows where forced orders would add to a move that's already happening.

Whether the price reaches the level depends on everything else in the market.

Can I see liquidation levels for HIP-3 markets?

Yes, if your source covers them. perpSnapshots accepts dex:market names, and Reservoir has a snapshot folder for each DEX.

Values on HIP-3 DEXes are in that DEX's collateral token, so convert them before you compare with USDC markets.

How is a liquidation price calculated on Hyperliquid?

It's the mark price at which the account's equity would fall to its maintenance margin, from a formula Hyperliquid publishes in its docs. Hyperliquid's clearinghouseState returns it for each open position as liquidationPx.

Sources

1. Hyperliquid docs: liquidations
2. Hyperliquid docs: margin tiers
3. Hyperliquid docs: funding
4. Hyperliquid docs: robust price indices
5. Hyperliquid docs: info endpoint, perpetuals
6. Hyperliquid docs: rate limits and user limits
7. Hydromancer docs: perpSnapshots
8. Hydromancer docs: rate limits and user limits
9. Hydromancer docs: Reservoir snapshots
10. Hydromancer docs: Reservoir license and attribution
11. Hydromancer docs: tpslBook
12. Hydromancer docs: batchClearinghouseStates
13. Hydromancer docs: pricing
14. How to View Entire Trader Positioning on Hyperliquid

Continue