# Liquidation stats · HyperCore API · Femtos

> Totals, per coin, per time bucket and the largest, over a window.

- 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/liquidation-stats

## Liquidation stats — GET `/v1/liquidations/stats`

Totals, per coin, per time bucket and the largest, over a window.

| Param | In | Example or values |
|---|---|---|
| `window` | query | `1h`, `24h`, `7d`, `30d` |
| `coin` | query | (optional) |

```bash
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/liquidations/stats?window=24h"
```

| Field | Type | Meaning |
|---|---|---|
| `total` | object | {notional, count, accounts, longNotional, shortNotional, market, backstop} |
| `byCoin[]` | object | per coin, largest first |
| `buckets[]` | object | {t, longNotional, shortNotional, count}, bucketMs apart |
| `largest[] · topAccounts[]` | object | 10 largest liquidations, 20 most liquidated accounts |

## Related (Liquidations & positions)

- [Liquidations](https://femtos.xyz/hypercore/liquidations.md): Perp liquidations, newest first, one row per account, coin and block.
- [Liquidations stream](https://femtos.xyz/hypercore/ws-liquidations.md): Each liquidation fill, the block it happens.
- [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
