API reference, Price-level maps
Liquidation heatmap
Liquidation prices of every open position over time: one column per node state, hour, 4 hours or day, one row per price bucket.
- Elysium: not served
- HyperCore
- Not on Elysium: served on HyperCore only
GET https://api.femtos.xyz/v1/hypercore/liquidation-heatmap
Parameters
| Param | In | Example or values | Meaning |
|---|---|---|---|
coin | query | BTC | HyperCore perp coin: BTC, xyz:TSLA |
interval | query | snapshot, 1h, 4h, 1d | One column per node state (`snapshot`, every ~12 min, the last 30 days) or per hour, 4 hours, day |
from | query | (optional) | Window start (Unix ms, default `to` minus the interval's default window) |
to | query | (optional) | Window end (Unix ms, exclusive). Absent: now, with a last column of the positions now |
buckets | query | 40 | Most price buckets (width rounded up to 1, 2, 2.5 or 5 × 10^k); not with step |
step | query | (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_lo | query | (optional) | Grid low price, with px_hi and step: the grid spans [px_lo, px_hi) (its low edge floored to a multiple of step) instead of the window's prices ± range_pct |
px_hi | query | (optional) | Grid high price (exclusive), with px_lo and step |
range_pct | query | (optional) | Margin of the grid below the window's lowest price and above its highest, percent, (0, 50]; unused with px_lo / px_hi |
Example
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/hypercore/liquidation-heatmap?coin=BTC&interval=4h&buckets=40"Key: Authorization: Bearer $FEMTOS_KEY. Get a free key, or with no browser through agent onboarding.
Response fields
| Field | Type | Meaning |
|---|---|---|
prices | decimal[] | Ascending price: the rows of every column |
columns[] | object | Ascending time: {t, height, px, live, long, short, longPositions, shortPositions} |
columns[].t | ms | Time of the node state (Unix ms); the last column without `to`: the positions' time, a few seconds ago |
columns[].px | decimal | The coin's price then: its last trade before the state's minute (the last column: its last trade). Levels further than 50 % from it are not counted in this column |
columns[].live | boolean | The last column of an open window (no `to`): the positions now, rolled forward from the latest node state every few seconds |
columns[].long | decimal[] | One per bucket, in the order of `prices`: longs, liquidated by a forced sell as price falls to the bucket |
columns[].short | decimal[] | One per bucket: shorts, liquidated by a forced buy as price rises to the bucket |
max | decimal | Largest cell of the answer, long or short (a colour scale's top) |
step | decimal | null | Bucket width; null without any column |
pxLo | decimal | null | Grid low edge (inclusive): the first bucket's; null without any column |
pxHi | decimal | null | Grid high edge (exclusive); null without any column |
from | ms | Window start read |
to | ms | Window end read (exclusive) |
billing | premium | Premium call: 1,000 credits. Free keys: 100 calls per account, then paid keys only ($10 prepaid or a plan). |
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 stream WS hc.liquidations.heatmap HyperCore
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). - 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
- This page as Markdown
- The whole API reference
- What HyperCore serves
- The whole API in one Markdown file
- OpenAPI 3.1 document
Agent guide (agents.md)llms.txtOpenAPIMCP serverGet an API keyChangelog