# Femtos | Liquidation heatmap cell | API reference

> The wallets behind one cell of the liquidation heatmap: positions liquidated in a bucket at a column's node state, or now. GET /v1/hypercore/liquidation-heatmap/positions on HyperCore: parameters, response fields and a live call per layer.

- Base URL: `https://api.femtos.xyz/v1` (REST) · `wss://api.femtos.xyz/v1/ws` (WebSocket) · MCP: `https://api.femtos.xyz/mcp`
- Auth: `Authorization: Bearer $FEMTOS_KEY`. Free key: https://dashboard.femtos.xyz/signup (browser), or with
  no browser: `GET https://femtos.xyz/accounts/agent/challenge`, solve its proof of work, then `POST https://femtos.xyz/accounts/agent/signup`
  (https://femtos.xyz/agents.md#agent-onboarding)
- Decimals are exact strings, times Unix milliseconds, addresses lowercase `0x`
- Whole API in one file: https://femtos.xyz/agents.md · OpenAPI: https://api.femtos.xyz/v1/openapi.json · Index: https://femtos.xyz/llms.txt
- Page with live calls: https://femtos.xyz/reference/liquidation-heatmap-positions

## Liquidation heatmap cell — GET `/v1/hypercore/liquidation-heatmap/positions`

The wallets behind one cell of the liquidation heatmap: positions liquidated in a bucket at a column's node state, or now.

Layers: HyperCore. Not on Elysium: served on HyperCore only.
Page with live calls: https://femtos.xyz/reference/liquidation-heatmap-positions?layer=hypercore

| Param | In | Example or values | Meaning |
|---|---|---|---|
| `coin` | query | `BTC` | HyperCore perp coin: BTC, xyz:TSLA |
| `px_lo` | query | `50000` | Bucket low edge (inclusive): one of the heatmap's prices |
| `px_hi` | query | `60000` | Bucket high edge (exclusive): the next price, or pxHi |
| `height` | query | (optional) | A column's height (its node state). Absent: the positions now (the last column of an open window) |
| `limit` | query | `50` | Positions listed (largest first) |

```bash
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/hypercore/liquidation-heatmap/positions?coin=BTC&px_lo=50000&px_hi=60000&limit=50"
```

| Field | Type | Meaning |
|---|---|---|
| `positions[]` | object | Positions liquidated in the bucket, largest \|size\| first; `notional` and `upnl` at the column's px: {address, szi, side, entryPx, notional, upnl, leverage, marginMode, liqPx, liqDistancePct, label, entity} |
| `long` | object | The longs in the bucket (liquidated by a forced sell as price falls to it): {positions, sz, notional} |
| `short` | object | The shorts in the bucket (liquidated by a forced buy as price rises to it): {positions, sz, notional} |
| `total` | int | Positions in the bucket |
| `px` | decimal \| null | The column's price: the coin's last trade before the state (now: its last trade); notionals and PnL at it |
| `height` | int \| null | Block of the positions read: the column's node state, or the block the positions now are at |
| `t` | ms \| null | Its time (Unix ms) |
| `live` | boolean | The positions now (no height) |
| `unavailable` | string | Present when the positions are not readable: a state no longer kept, no positions cut yet (positions empty) |

## Related (Price-level maps)

- [Liquidation price map](https://femtos.xyz/reference/liquidation-map.md) `GET /v1/hypercore/liquidation-map`: Liquidation prices of every open position, from Hyperliquid's formula on each account's state, bucketed like the stop map. (HyperCore)
- [Liquidation map stream](https://femtos.xyz/reference/ws/liquidations-map.md) `WS hc.liquidations.map`: 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). (HyperCore)
- [Liquidation heatmap](https://femtos.xyz/reference/liquidation-heatmap.md) `GET /v1/hypercore/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. (HyperCore)
- [Liquidation heatmap stream](https://femtos.xyz/reference/ws/liquidations-heatmap.md) `WS hc.liquidations.heatmap`: 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). (HyperCore)
- [Forced flow](https://femtos.xyz/reference/forced-flow.md) `GET /v1/hypercore/forced-flow`: 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. (HyperCore)
- [Forced flow stream](https://femtos.xyz/reference/ws/forced-flow.md) `WS hc.forced_flow.map`: 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). (HyperCore)
- [Price level](https://femtos.xyz/reference/price-level.md) `GET /v1/hypercore/price-level`: The orders and positions inside one bucket of the maps: each stop / take-profit with its wallet and position, each position liquidated there. (HyperCore)
- [Stop map stream](https://femtos.xyz/reference/ws/stops-map.md) `WS hc.stops.map`: 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). (HyperCore)

Every page: https://femtos.xyz/reference.md
