API explorer

Pick an endpoint, fill in the parameters and send. Runs through the real API: with your key when you are logged in, without a key otherwise. Your key never reaches the page.

Request
curl -s -H "X-Blockmetric-Access: public" \
  "https://api.blockmetric.io/v1/liquidations/by-price?coin=BTC&hours=24"

Try it

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.

No key: 24 h of history, 10 requests a minute and 300 a day per IP address in this console. From your own code, keyless access is a trial of 25 requests a day.

Get a free key: 30 days of history and 60 requests a minute, counted for your account alone.

Choose an endpoint, fill in parameters and send. The response appears here with its status, headers and timing.

Parameters, response fields and a real example of every endpoint: API reference.

LiveHyperliquid markets 12sOperationalHyperliquid positions & whales 14sOperationalLiquidation heatmap & levels 17sOperationalLighter markets & liquidations 33sOperationalLighter positions & heatmap 12sOperationalLighter on Robinhood Chain: positions & heatmap 14sOperationalAster markets 24sOperationalBinance markets 14sOperationalBybit markets 49sOperationalGate markets 19sOperationalHTX markets 21sOperationalKuCoin markets 19sOperationalBinance liquidations 31sOperationalBybit liquidations 31sOperationalGate liquidations 31sOperationalHTX liquidations 31sOperationaldYdX positions & heatmap 17sOperationalGMX positions & heatmap 16sOperationalLong/short & open interest history 14sOperationalOrder books & trade flow 9sOperationalOn-chain transfers 12sOperationalSecurity monitor 17sOperationalBlockmetric Sentiment 14mOperationalAgency releases 8mOperationalAlert delivery 18sOperationalDataset files 21mOperational07:29:07 UTC