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

# How much of this wallet's profit goes to fees?

> See how much of a wallet's profit goes to trading fees.

> 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:** fees paid against net PnL over the last 30 days for each market, weekday and hour, the fees paid per dollar earned, and the wallet's current fee rates.

![Paired bars for BTC, ETH, HYPE and Other: fees paid next to net PnL, with fees per dollar earned labeled on each row.](https://mintcdn.com/hd-ebefeca3/UfCgPFaQ389ucAbM/images/data-api/recipes/fees-vs-profit.png?fit=max\&auto=format\&n=UfCgPFaQ389ucAbM\&q=85\&s=6741535c0d9c2106f031319a61a57991)

> [!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 Hyperliquid wallet 0x..., over the last 30 days, show the fees it paid against its net PnL by market, weekday and hour, the fees paid per dollar earned, and the fee rates it pays today.
> ```
>
> **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. Get results with fees**

Net PnL and fees per market, weekday and hour, for completed trades only. The first line sets `START` to 30 days ago, in Unix milliseconds.

```bash theme={null}
export START=$(( ($(date +%s) - 30*86400) * 1000 ))
curl "https://data.hyperdash.com/v1/accounts/$ADDRESS/review?start_time=$START" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**2. Check the fee rates**

Current maker and taker rates, discounts and 14-day volume.

```bash theme={null}
curl "https://data.hyperdash.com/v1/accounts/$ADDRESS/fees" \
  -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] [The hidden cost of trading](https://hyperdash.com/learn/the-hidden-cost-of-trading)
>
> How fees quietly eat into profit.

> [card] [Hyperliquid fees explained](https://hyperdash.com/learn/understanding-hyperliquids-fee-structure-and-how-to-reduce-your-costs)
>
> Fee tiers, staking discounts and lower costs.

> [card] [Wallet PnL and history](https://hyperdash.com/learn/hyperliquid-wallet-pnl-and-trade-history)
>
> Pull any wallet's PnL and trade history.


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