# Liquidations stream · HyperCore API · Femtos

> Each liquidation fill, the block it happens.

- 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` (or `X-API-KEY: $FEMTOS_KEY`). Free key: https://femtos.xyz/accounts/ (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/hypercore/ws-liquidations

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

## Liquidations stream — WS `hc.liquidations`

Each liquidation fill, the block it happens.

| Param | In | Example or values |
|---|---|---|
| `coin` | filter | (optional) |
| `min_notional` | filter | (optional) |

```json
{"op":"subscribe","channel":"hc.liquidations","filter":{}}
```

| Field | Type | Meaning |
|---|---|---|
| `snapshot: true` | object[] | last 50 liquidation fills |
| `data` | object | {coin, liquidated_user, liquidated_side, method, px, sz, notional, mark_px, time, block} |

## Related (Liquidations & positions)

- [Liquidations](https://femtos.xyz/hypercore/liquidations.md): Perp liquidations, newest first, one row per account, coin and block.
- [Liquidation stats](https://femtos.xyz/hypercore/liquidation-stats.md): Totals, per coin, per time bucket and the largest, over a window.
- [Positions](https://femtos.xyz/hypercore/positions.md): Open positions of one perp with leverage and liquidation price.
- [Open interest](https://femtos.xyz/hypercore/positions-overview.md): Open interest, accounts and unrealized PnL per perp.
- [Liquidation map](https://femtos.xyz/hypercore/liqmap.md): Notional that would be liquidated at each price around the mark.
- [Position changes](https://femtos.xyz/hypercore/ws-positions.md): Each perp position change, one per block, account and coin.

All HyperCore endpoints: https://femtos.xyz/hypercore.md
