Skip to main content
Follow liquidations two ways: the ones that happened, with the account liquidated, and the ones waiting, as the price levels where open positions would be liquidated.

Liquidations that happened

liquidations() delivers each liquidation to onLiquidation: time, price, size, notional, side (the side of the position liquidated, 'long' or 'short') and user, the account. On Hyperliquid user is the wallet, lower-case; on Lighter it is an account index. Liquidations reach back 7 days.

Follow wallets

input.addresses gives the settings panel a wallet list, which keeps only valid addresses, lower-case. Skip the others in the handler:
Lighter names an account index rather than a wallet, which no address matches. One position is often liquidated in several fills a moment apart. To count liquidations rather than fills, treat a wallet’s fills within a minute as one, as Most-liquidated wallets does.

Where liquidations would happen next

liquidationLevels() is 0xArchive’s estimate of where open positions would be liquidated: 40 levels over 10% either side of the mark, each with the USD of longs and of shorts liquidated there, about every 5 minutes. Read it in any handler; levels() is the snapshot as of that bar, sorted by price.
Levels are Hyperliquid’s, from 27 July 2026, kept for 7 days, and never interpolated between snapshots: a bar between two snapshots reads the earlier one. Levels far from the price stretch the price scale and squash the candles; plot them with autoscale: false so they are drawn where they fall without moving the scale. Liquidation levels ahead and Liquidation clusters draw them.

Next step

Draw what a script found with outputs.
Last modified on October 16, 2026