> ## 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.

# Who is buying BTC right now?

> Tell new buying apart from short covering after a big move.

> 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:** the 100 largest BTC position changes in each window from 5 minutes to 24 hours, sorted into new, added, reduced or closed longs and shorts, with the wallets behind each.

![Stacked bars for 5 windows from 5 minutes to 24 hours, splitting BTC buying into new longs, added longs and closed shorts, and selling into closed longs and new shorts.](https://mintcdn.com/hd-ebefeca3/pd0wguZzpnZWXwwa/images/data-api/recipes/net-buying.png?fit=max\&auto=format\&n=pd0wguZzpnZWXwwa\&q=85\&s=1718d92eda4fddc575b05a16f084b7c6)

> [!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}
> For BTC, look at the 100 largest position changes in the last 5 minutes, 15 minutes, 1 hour, 4 hours and 24 hours. Sort each change into new, added, reduced or closed longs and shorts, and show how buying and selling split across them in each window, with the largest wallets in each.
> ```
>
> **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 first:

```bash theme={null}
export HYPERDASH_API_KEY="hdk_sk_..."
```

**1. Get position changes**

Wallets whose BTC position changed in the window, with previous and current size. `window` is in seconds: `300`, `900`, `3600`, `14400` or `86400`.

```bash theme={null}
curl "https://data.hyperdash.com/v1/markets/BTC/position-changes?window=3600&limit=100" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**2. Add total buy and sell volume**

Buy and sell volume per bar, to compare against the split. The first line sets `START` to 24 hours ago, in Unix milliseconds.

```bash theme={null}
export START=$(( ($(date +%s) - 86400) * 1000 ))
curl "https://data.hyperdash.com/v1/markets/BTC/trade-bars?interval=1h&start_time=$START" \
  -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] [Why position changes matter](https://hyperdash.com/learn/why-every-trader-needs-to-understand-position-changes)
>
> Tell new buying apart from short covering.

> [card] [What is open interest](https://hyperdash.com/learn/what-is-open-interest-and-why-does-it-matter)
>
> Why open interest matters for traders.


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