# Vybe Solana Analytics API — Top PnL Traders by Token

> Vybe Solana Analytics API — Top PnL Traders by Token is a paid API for AI agents from x402-api.vybenetwork.xyz, paid per call via x402, $0.003000/call, status unknown (last checked 2026-10-10).

Returns the top profit-and-loss (PnL) traders for a given Solana token mint address over a configurable time window, sortable by realized PnL, volume, or trade count.

## Facts

- Endpoint: POST https://x402-api.vybenetwork.xyz/v4/tokens/%7BmintAddress%7D/top-pnl-traders?utm_source=zero.xyz
- Price: $0.003000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vybe-solana-analytics-api-top-pnl-traders-by-token-c62f9c06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YCC5cr2gWcsDZVcsG_eQ7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability vybe-solana-analytics-api-top-pnl-traders-by-token-c62f9c06 -d '<json body>'
```

Example prompt: Show me the top 20 traders by realized PnL for the Solana token with mint address EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v over the last 7 days, sorted highest profit first.

## When to prefer this

Use this endpoint when you need to identify and rank wallets by trading performance (PnL, volume, trade count) for a specific Solana token. Ideal for copy-trading research, smart money tracking, token leaderboard displays, and on-chain alpha discovery. Prefer this over general wallet endpoints when the analysis is token-centric rather than wallet-centric.

## Known failure modes

- Invalid or non-existent mint address returns empty results or 404
- Conflicting sortByAsc and sortByDesc fields causes a 400 validation error
- Invalid resolution value (not '1d', '7d', or '30d') returns 400
- Payment not attached or insufficient USDC causes 402 Payment Required
- Rate limits or network issues may cause 5xx errors
- Token with no trading activity returns an empty trader list

## How this service works

Read access to Solana on-chain data — tokens, wallets, markets, prices, trades, transfers. No API key, no signup. Pay in USDC per request with the x402 protocol; the per-route price is declared in `x-payment-info`. WebSocket streaming uses prepaid credits.

## Output

A paginated list of top traders for the specified token, each record including trader wallet address, realized PnL in USD, total trading volume in USD, and trade count — ranked according to the requested sort field and direction over the chosen time window (1d, 7d, or 30d).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "mintAddress"
 ],
 "properties": {
  "page": {
   "type": "integer",
   "description": "Page number to return. Defaults to 0."
  },
  "limit": {
   "type": "integer",
   "description": "Maximum number of traders to return. Defaults to 1000."
  },
  "sortByAsc": {
   "type": "string",
   "description": "Sort ascending by 'traderAddress', 'realizedPnlUsd', 'totalVolumeUsd', or 'tradesCount'. If omitted, no sorting is applied. Only one of `sortByAsc` or `sortByDesc` can be used."
  },
  "resolution": {
   "type": "string",
   "description": "Time window for PnL calculation. Possible values: '1d' (last day), '7d' (last 7 days), '30d' (last 30 days). Defaults to '1d'."
  },
  "sortByDesc": {
   "type": "string",
   "description": "Sort descending by 'traderAddress', 'realizedPnlUsd', 'totalVolumeUsd', or 'tradesCount'. If omitted, no sorting is applied. Only one of `sortByAsc` or `sortByDesc` can be used."
  },
  "mintAddress": {
   "type": "string",
   "description": "The mint address of the token."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "$ref": "#/components/schemas/TopPnlTraderByTokenTraderResponse"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vybe-solana-analytics-api-top-pnl-traders-by-token-c62f9c06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api.vybenetwork.xyz](https://www.zero.xyz/host/x402-api.vybenetwork.xyz/llms.txt)
