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

# Are top traders long or short BTC?

> See which side profitable traders are on, where open interest is building and which side funding pays.

> 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:** how many profitable traders are long and short each market and how their BTC positioning changed over the week, the markets that added the most open interest in 7 days, current funding on the top markets, and 24 hours of ETH taker flow.

![Diverging bar chart of 10 markets: the share of profitable traders short in red and long in green, with the notional on each side.](https://mintcdn.com/hd-ebefeca3/sc_V11qf70fJnV3w/images/data-api/recipes/market-positioning.png?fit=max\&auto=format\&n=sc_V11qf70fJnV3w\&q=85\&s=9621144759170788fffdb3f0d198c998)

> [!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}
> Are the most profitable traders on Hyperliquid net long or short BTC, and how has that changed over the last 7 days? Show me which markets added the most open interest in the last 7 days, whether funding is paying longs or shorts on the 10 markets with the highest funding, and whether ETH taker flow has been buying or selling over the last 24 hours.
> ```
>
> **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. Count top traders on each side**

How many wallets of the profitable-trader cohort are long and short each market, with their notional.

```bash theme={null}
curl "https://data.hyperdash.com/v1/cohorts/consensus" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**2. Track one market over the week**

Long and short notional per hour for each all-time-PnL cohort. Last 7 days by default.

```bash theme={null}
curl "https://data.hyperdash.com/v1/cohorts/positioning?coin=BTC&cohort_type=pnl" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**3. Find where open interest is building**

Open interest of every market now and 24 hours, 7 days and 30 days ago.

```bash theme={null}
curl "https://data.hyperdash.com/v1/markets/open-interest/changes" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**4. Check which side funding pays**

Markets with at least 1M USD open interest, ranked by absolute funding, with APR. Positive funding means longs pay shorts.

```bash theme={null}
curl "https://data.hyperdash.com/v1/markets/funding/latest?sort=abs&limit=10" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**5. Measure taker flow**

Taker buy and sell notional per hour, and the running delta.

```bash theme={null}
curl "https://data.hyperdash.com/v1/markets/ETH/cvd?interval=1h&days=1" \
  -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] [What is open interest](https://hyperdash.com/learn/what-is-open-interest-and-why-does-it-matter)
>
> Why open interest matters for traders.

> [card] [Funding rates explained](https://hyperdash.com/learn/funding-rates-explained-what-every-perps-trader-needs-to-know)
>
> How funding works and why it matters.

> [card] [Why position changes matter](https://hyperdash.com/learn/why-every-trader-needs-to-understand-position-changes)
>
> Tell new buying apart from short covering.


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