Tokens API
Token PnL leaders brief: the most profitable wallets on a token
The 25 wallets with the largest all-time profit on a token, realized plus held, with buys and sells. Chain and token.
/api/external/token-analysis/token-pnl-leaders-brief/{chain}/{mint}What it returns
The brief of token-pnl-leaders; prefer it unless you need all 100 wallets. The first 25 of the ranking by total profit on one token over its whole life, realized plus the mark-to-market profit on tokens still held, each exactly as token-pnl-leaders lists it, with how many wallets the full ranking lists.
Chains
- Ethereum ETH
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/token-analysis/token-pnl-leaders-brief/ETH/<mint>"
| Parameter | Description |
|---|---|
chainpath · string · required | The chain the token lives on. ETH only; every other chain returns 400. |
mintpath · string · required | The token mint address (Solana) or contract address (EVM). |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
asOfBlock | integer | null | The block the ranking was computed up to. |
leaderCount | integer | Wallets token-pnl-leaders lists, at most 100. 0 for an empty ranking. |
leaders | object[] | The ranking's first 25, highest total profit first, each exactly as token-pnl-leaders lists it. |
leaders[].wallet | string | Lowercase. |
leaders[].totalPnlUsd | number | null | Realized plus unrealized profit, USD. What the list is ranked by. |
leaders[].totalPnlPct | number | null | totalPnlUsd as a percentage of the USD spent buying. |
leaders[].realizedPnlUsd | number | null | Profit on tokens already sold, USD. A real 0 when the wallet sold nothing. |
leaders[].realizedPnlPct | number | null | Realized profit as a percentage of the cost of the tokens sold; null when the wallet sold nothing. |
leaders[].unrealizedPnlUsd | number | null | Mark-to-market profit on the tokens still held, USD. |
leaders[].tokensBought | number | null | Whole tokens bought. |
leaders[].tokensSold | number | null | Whole tokens sold. |
leaders[].boughtUsd | number | null | USD spent buying. |
leaders[].soldUsd | number | null | USD received selling. |
leaders[].avgBuyPriceUsd | number | null | null when the wallet bought nothing. |
leaders[].avgSellPriceUsd | number | null | null when the wallet sold nothing. |
leaders[].costOfSoldUsd | number | null | The cost of the tokens sold, at the average buy price; null when the wallet sold nothing. |
leaders[].trades | integer | null | Buys and sells together. |
truncated | boolean | true when more wallets are ranked than token-pnl-leaders lists. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key