> ## 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 good is this trader?

> See how any wallet traded over the last 30 days, with its lifetime PnL for context.

> 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 one wallet traded over the last 30 days: PnL and win rate, Sharpe and drawdown, daily account value and PnL, results by market, weekday and hour, and its best, biggest and worst trades, with its lifetime PnL for context.

![Trader profile for one wallet: lifetime PnL, win rate, trades and volume, 30-day Sharpe and max drawdown, a 30-day account value curve, PnL by market, and its best and worst trades.](https://mintcdn.com/hd-ebefeca3/UfCgPFaQ389ucAbM/images/data-api/recipes/wallet-report.png?fit=max\&auto=format\&n=UfCgPFaQ389ucAbM\&q=85\&s=f31d11dad8c830316b83dd2f5eff4176)

> [!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..., show me how it traded over the last 30 days: PnL and win rate, Sharpe and max drawdown, daily account value and PnL, PnL by market, weekday and hour, every completed trade, and its best, biggest and worst trades. Add its lifetime PnL for context.
> ```
>
> **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 the lifetime summary**

Realized PnL, win rate, trades, fees, volume and account age over the whole history. It reads no time range, so it works on every plan.

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

**2. Add account value and daily PnL**

One row per day. The first line sets `START` to 30 days ago, in Unix milliseconds; the later calls use it too.

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

**3. Review results by market and time**

Totals per market, weekday and hour, with the best and worst trade.

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

**4. Pull the best and biggest trades**

Up to 15 of each, for trades opened since `START`.

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

**5. List every completed trade**

Round trips with entry, exit, size and net PnL, newest first, up to 200 per page. One query reaches at most 10,200 trades (`meta.truncated` says more exist); for a busier wallet, filter by market. Stop paging once `close_time` is older than `START`.

```bash theme={null}
curl "https://data.hyperdash.com/v1/accounts/$ADDRESS/completed-trades?limit=200" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

**6. Check risk**

Sharpe and Sortino, and max drawdown. Read the 30-day values; the longer windows in the response need a longer history.

```bash theme={null}
curl "https://data.hyperdash.com/v1/accounts/$ADDRESS/risk-metrics" \
  -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] [Wallet PnL and history](https://hyperdash.com/learn/hyperliquid-wallet-pnl-and-trade-history)
>
> Pull any wallet's PnL and trade history.

> [card] [Analyze trader performance](https://hyperdash.com/learn/how-to-analyze-trader-performance-on-hyperliquid)
>
> Judge traders by more than raw PnL.

> [card] [Analyze a trader's wallet](https://hyperdash.com/learn/how-to-analyze-a-traders-wallet-what-to-look-for-before-you-follow)
>
> What to check before you follow a trader.


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