# TradeSonar dYdX Whale Leaderboard

> TradeSonar dYdX Whale Leaderboard is a paid API for AI agents from api.tradesonar.io, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns a ranked leaderboard of top dYdX on-chain addresses by lifetime PnL, with funding earned and trade count, optionally excluding market makers.

## Facts

- Endpoint: GET https://api.tradesonar.io/v1/whales/leaderboard?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tradesonar-dydx-whale-leaderboard-acdb3e7d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SVci-LRhbisogvZkm6MAX

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 tradesonar-dydx-whale-leaderboard-acdb3e7d
```

Example prompt: Pull the top 100 copy-tradeable dYdX whale addresses ranked by lifetime realized PnL — exclude market makers so I only see real directional traders.

## When to prefer this

Use this endpoint when you need a ranked view of the most profitable dYdX on-chain traders — particularly for copy-trading watchlist construction, smart money signal sourcing, or whale concentration analysis. Prefer this over generic CEX leaderboards when you specifically need transparent on-chain dYdX perpetuals data with wallet-level granularity. Choose sibling endpoints for per-address position data or market-level funding/crowding signals.

## Known failure modes

- Invalid limit value (outside 1-200 range) returns a 400 error
- Unknown window value returns a 400 validation error
- Payment not provided or insufficient causes a 402 Payment Required response
- Replica lag spikes may cause stale data_as_of timestamps
- If dYdX indexer is behind, block height may lag real-time state

## How this service works

Most profitable subaccounts (with classification)

## Output

A ranked list of up to 200 dYdX wallet addresses, each with rank, address, lifetime realized PnL in USD, funding earned in USD, total trade count, and a classification label (e.g. whale, market maker). The response includes a data_as_of timestamp with block height and replica lag for freshness transparency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "description": "How many top addresses to return, 1-200"
      },
      "window": {
       "type": "string",
       "default": "all",
       "description": "PnL window (currently 'all' = lifetime)"
      },
      "exclude_mm": {
       "type": "boolean",
       "default": true,
       "description": "Exclude market makers (not copy-tradeable)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "whales": [
    {
     "rank": 0,
     "address": "...",
     "fundingUsd": "...",
     "tradeCount": 0,
     "classification": "...",
     "realizedPnlUsd": "..."
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tradesonar-dydx-whale-leaderboard-acdb3e7d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tradesonar.io](https://www.zero.xyz/host/api.tradesonar.io/llms.txt)
