# Liquidation levels stream | API reference | Femtos

> The GET /v1/positions/liqmap answer of one perp (notional liquidated per price bucket), pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes. WebSocket channel hc.positions.liqmap 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/ws/positions-liqmap

WebSocket: get a ticket (`POST https://api.femtos.xyz/v1/ws-ticket` with your key), connect to `wss://api.femtos.xyz/v1/ws?ticket=$TICKET`, send the frame below; the first message has `"snapshot": true`. Details: https://femtos.xyz/agents.md#websocket

## Liquidation levels stream — WS `hc.positions.liqmap`

The GET /v1/positions/liqmap answer of one perp (notional liquidated per price bucket), pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes.

Layers: HyperCore. Not on Elysium or HyperEVM: a channel of HyperCore only.
Page with live calls: https://femtos.xyz/reference/ws/positions-liqmap?layer=hypercore

| Param | In | Example or values | Meaning |
|---|---|---|---|
| `coin` | filter | `BTC` | Perp coin |
| `range` | filter | (optional) | Half-width around the mark, (0, 1] (default 0.3: ±30 %) |
| `buckets` | filter | `60` | Price buckets, default 80 (1..400) |

```json
{"op":"subscribe","channel":"hc.positions.liqmap","filter":{"coin":"BTC","buckets":"60"}}
```

| Field | Type | Meaning |
|---|---|---|
| `snapshot: true` | object | the full GET /v1/positions/liqmap answer: the first frame, and any frame sent whole |
| `patch: true` | JsonPatch | with "patch": true on subscribe: the operations, in order, that turn the previous answer into this one |
| `billing` | rest | the snapshot a subscribe asks for counts as GET /v1/positions/liqmap (rest); every other frame by its bytes (1 credit per 48 KiB) |

## Related (Liquidations & positions)

- [Liquidations](https://femtos.xyz/reference/liquidations.md) `GET /v1/liquidations`: Perp liquidations, newest first, one row per account, coin and block. (HyperCore)
- [Liquidations stream](https://femtos.xyz/reference/ws/liquidations.md) `WS hc.liquidations`: Each liquidation fill, the block it happens. One frame per block with all its matching events. (HyperCore)
- [Liquidation stats](https://femtos.xyz/reference/liquidation-stats.md) `GET /v1/liquidations/stats`: Totals, per coin, per time bucket and the largest, over a window. (HyperCore)
- [Liquidation stats stream](https://femtos.xyz/reference/ws/liquidation-stats.md) `WS hc.liquidations.stats`: The GET /v1/liquidations/stats answer (totals, per coin, per bucket, the largest), pushed on subscribe, then when a liquidation comes in (whole, or as a JSON Patch). (HyperCore)
- [Positions](https://femtos.xyz/reference/positions.md) `GET /v1/positions`: Open positions of one perp with leverage and liquidation price. (HyperCore)
- [Position changes](https://femtos.xyz/reference/ws/positions.md) `WS hc.positions`: Each perp position change, one per block, account and coin. One frame per block with all its matching events. (HyperCore)
- [Open positions stream](https://femtos.xyz/reference/ws/positions-open.md) `WS hc.positions.open`: The GET /v1/positions answer of one perp (size, entry, PnL, leverage, liquidation price), pushed on subscribe, then on each roll of the live positions (every 5 s) when it changes. (HyperCore)
- [Position change history](https://femtos.xyz/reference/position-changes.md) `GET /v1/positions/changes`: Past perp position changes of one coin over a size, one row per account and block. (HyperCore)
- [Open interest](https://femtos.xyz/reference/positions-overview.md) `GET /v1/positions/overview`: Open interest, accounts and unrealized PnL per perp. (HyperCore)
- [Open interest stream](https://femtos.xyz/reference/ws/positions-overview.md) `WS hc.positions.overview`: The GET /v1/positions/overview answer (long / short open interest, accounts, unrealized PnL per perp), 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 map](https://femtos.xyz/reference/liqmap.md) `GET /v1/positions/liqmap`: Notional that would be liquidated at each price around the mark. (HyperCore)
- [Open interest history](https://femtos.xyz/reference/open-interest.md) `GET /v1/hypercore/oi`: Open interest bars of a perp since May 2023, after every block since March 2025: longs and shorts opened, closed, liquidated. (HyperCore)
- [Open interest per block](https://femtos.xyz/reference/ws/oi.md) `WS hc.oi`: The open interest of a perp after every block with a fill: longs and shorts opened, closed, liquidated. One frame per block with all its matching events. (HyperCore)
- [Open interest by market](https://femtos.xyz/reference/open-interest-markets.md) `GET /v1/hypercore/oi/markets`: Every perp's open interest now, its 1 h / 24 h / 7 d change, totals per dex. (HyperCore)
- [Open interest by position size](https://femtos.xyz/reference/open-interest-cohorts.md) `GET /v1/hypercore/oi/cohorts`: Long and short open interest of a perp by position size, every hour since September 2025. (HyperCore)
- [Who opened positions](https://femtos.xyz/reference/open-interest-opens.md) `GET /v1/hypercore/oi/opens`: The largest orders that opened longs or shorts on a perp in a window, with the account and whether it crossed the spread. (HyperCore)

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