API reference, Price-level maps

Liquidation heatmap stream

The GET /v1/hypercore/liquidation-heatmap answer of one perp over its default window ending now, pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes (whole, or as a JSON Patch).

  • Not on Elysium: a channel of HyperCore only

WebSocket channel hc.liquidations.heatmap on wss://api.femtos.xyz/v1/ws

Parameters

ParamInExample or valuesMeaning
coinfilterBTCPerp coin
intervalfilter(empty), snapshot, 1h, 4h, 1dsnapshot, 1h, 4h, 1d (default 1h): one column per node state, hour, 4 hours or day
bucketsfilter40Most price buckets, default 100; not with step (1..200)
stepfilter(optional)Bucket width in price units, instead of buckets (at most 1000 buckets; a multiple of the 4th significant digit of the grid's top price)
px_lofilter(optional)Grid low price, with px_hi and step: the grid spans [px_lo, px_hi) instead of the window's prices ± range_pct
px_hifilter(optional)Grid high price (exclusive), with px_lo and step
range_pctfilter(optional)Grid margin around the window's prices, percent, (0, 50] (default 10); unused with px_lo / px_hi

Subscribe

{"op":"subscribe","channel":"hc.liquidations.heatmap","filter":{"coin":"BTC","interval":"4h","buckets":"40"}}

Key: Authorization: Bearer $FEMTOS_KEY. Get a free key, or with no browser through agent onboarding.

Response fields

FieldTypeMeaning
snapshot: trueobjectthe full GET /v1/hypercore/liquidation-heatmap answer: the first frame, and any frame sent whole
patch: trueJsonPatchwith "patch": true on subscribe: the operations, in order, that turn the previous answer into this one
billingpremiumthe snapshot a subscribe asks for counts as GET /v1/hypercore/liquidation-heatmap (premium); every other frame by its bytes (1 credit per 48 KiB)

Related: Price-level maps

  • Liquidation price map GET /v1/hypercore/liquidation-map HyperCore
    Liquidation prices of every open position, from Hyperliquid's formula on each account's state, bucketed like the stop map.
  • Liquidation map stream WS hc.liquidations.map HyperCore
    The GET /v1/hypercore/liquidation-map map, pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes (whole, or as a JSON Patch).
  • Liquidation heatmap GET /v1/hypercore/liquidation-heatmap HyperCore
    Liquidation prices of every open position over time: one column per node state, hour, 4 hours or day, one row per price bucket.
  • Liquidation heatmap cell GET /v1/hypercore/liquidation-heatmap/positions HyperCore
    The wallets behind one cell of the liquidation heatmap: positions liquidated in a bucket at a column's node state, or now.
  • Forced flow GET /v1/hypercore/forced-flow HyperCore
    Stop-loss / take-profit orders and liquidations on the same buckets: the cascade (stops + liquidations, with the move) and the take-profits (against it) at each price.
  • Forced flow stream WS hc.forced_flow.map HyperCore
    The GET /v1/hypercore/forced-flow map, pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes (whole, or as a JSON Patch).
  • Price level GET /v1/hypercore/price-level HyperCore
    The orders and positions inside one bucket of the maps: each stop / take-profit with its wallet and position, each position liquidated there.
  • Stop map stream WS hc.stops.map HyperCore
    The GET /v1/hypercore/stops map, pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes (whole, or as a JSON Patch).

More

Agent guide (agents.md)llms.txtOpenAPIMCP serverGet an API keyChangelog