> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hyperdash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What happened on the biggest liquidation day?

> Replay the worst liquidation day of the last 30 days minute by minute and see which wallets were liquidated for the most.

> AI agents: read [https://docs.hyperdash.com/skills/data](https://docs.hyperdash.com/skills/data) before using this API. Endpoint index: [https://data.hyperdash.com/llms.txt](https://data.hyperdash.com/llms.txt). Never ask the user to paste an API key into the chat.

**What you get:** a time-lapse of the price and liquidations per minute through the day, longs against shorts, and the 10 wallets liquidated for the most with their trades before it.

![BTC price falling 9% in 40 minutes over columns of liquidations per minute, long liquidations in red and short liquidations in green.](https://mintcdn.com/hd-ebefeca3/pd0wguZzpnZWXwwa/images/data-api/recipes/liquidation-replay.png?fit=max\&auto=format\&n=pd0wguZzpnZWXwwa\&q=85\&s=5255bb4f601aae8e933960f4df7966db)

> [!TIP]
>
> **Ask your agent:** paste this prompt into an AI chat connected to the [MCP server](https://docs.hyperdash.com/data-api/mcp.md), or into a command-line coding agent such as Claude Code or Codex, with your [API key](https://docs.hyperdash.com/data-api/authentication.md) exported.
>
> ```text theme={null}
> Find the day with the most liquidations on Hyperliquid in the last 30 days. Replay it as a time-lapse, minute by minute, with the price moving and liquidations stacking up, longs against shorts. Then list the 10 wallets that were liquidated for the most, with the size, side, liquidation price and loss of each, and the trades they made in the hours before.
> ```
>
> **Optional:** add this line to get the results as an interactive dashboard.
>
> ```text theme={null}
> Build it as an interactive dashboard in a local HTML file and open it in my browser.
> ```

## API calls

Set your key and the values the calls use first:

```bash theme={null}
export HYPERDASH_API_KEY="hdk_sk_..."
export ADDRESS="0x..."   # the wallet to read
```

**1. Find the worst days**

The days with the most liquidated notional, with the lead market and peak minute. The first line sets `FROM` to 30 days ago, in Unix milliseconds.

```bash theme={null}
export FROM=$(( ($(date +%s) - 30*86400) * 1000 ))
curl "https://data.hyperdash.com/v1/liquidations/cascades?limit=10&start_time=$FROM" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**2. Replay the day by the minute**

Long and short liquidations per minute, up to 1 day per call. The first line sets `START` to the start of yesterday (UTC) in Unix milliseconds, and the second sets `END` one day later. For the day from step 1, set `START` to that day's 00:00 UTC instead.

```bash theme={null}
export START=$(( ($(date +%s) / 86400 - 1) * 86400000 ))
export END=$(( START + 86400000 ))
curl "https://data.hyperdash.com/v1/liquidations/minutes?start_time=$START&end_time=$END" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**3. Add the price**

1-minute candles for the lead market.

```bash theme={null}
curl "https://data.hyperdash.com/v1/markets/BTC/candles?interval=1m&start_time=$START&end_time=$END&limit=1440" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**4. List the largest liquidations**

Wallet, side, price, size, notional and closed PnL. Includes the system backstop account; skip it for a trader list.

```bash theme={null}
curl "https://data.hyperdash.com/v1/liquidations/top?limit=10&start_time=$START&end_time=$END" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**5. See each wallet's trades**

Fills for one wallet around the liquidation, up to 7 days per call.

```bash theme={null}
curl "https://data.hyperdash.com/v1/accounts/$ADDRESS/fills?aggregate=true&start_time=$START&end_time=$END" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

> [card] [View more recipes](https://docs.hyperdash.com/data-api/recipes.md)

## Learn more

> [card] [Hyperdash Data API](https://hyperdash.com/products/data/api)
>
> Hyperliquid market and account data over REST and streams.

> [card] [Read a liquidation heatmap](https://hyperdash.com/learn/how-to-read-a-liquidation-heatmap)
>
> Spot where leveraged positions get liquidated.

> [card] [Auto-deleveraging explained](https://hyperdash.com/learn/what-is-auto-deleveraging-adl-and-how-does-it-affect-your-trades)
>
> How ADL can affect your positions.

> [card] [Historical data guide](https://hyperdash.com/learn/hyperliquid-historical-data)
>
> Where to get Hyperliquid history and how far back.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.