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.

GET/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>"
Parameters
ParameterDescription
chain

path · string · required

The chain the token lives on. ETH only; every other chain returns 400.
mint

path · 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.

Response fields of Token PnL leaders brief: the most profitable wallets on a token
FieldTypeDescription
asOfBlockinteger | nullThe block the ranking was computed up to.
leaderCountintegerWallets token-pnl-leaders lists, at most 100. 0 for an empty ranking.
leadersobject[]The ranking's first 25, highest total profit first, each exactly as token-pnl-leaders lists it.
leaders[].walletstringLowercase.
leaders[].totalPnlUsdnumber | nullRealized plus unrealized profit, USD. What the list is ranked by.
leaders[].totalPnlPctnumber | nulltotalPnlUsd as a percentage of the USD spent buying.
leaders[].realizedPnlUsdnumber | nullProfit on tokens already sold, USD. A real 0 when the wallet sold nothing.
leaders[].realizedPnlPctnumber | nullRealized profit as a percentage of the cost of the tokens sold; null when the wallet sold nothing.
leaders[].unrealizedPnlUsdnumber | nullMark-to-market profit on the tokens still held, USD.
leaders[].tokensBoughtnumber | nullWhole tokens bought.
leaders[].tokensSoldnumber | nullWhole tokens sold.
leaders[].boughtUsdnumber | nullUSD spent buying.
leaders[].soldUsdnumber | nullUSD received selling.
leaders[].avgBuyPriceUsdnumber | nullnull when the wallet bought nothing.
leaders[].avgSellPriceUsdnumber | nullnull when the wallet sold nothing.
leaders[].costOfSoldUsdnumber | nullThe cost of the tokens sold, at the average buy price; null when the wallet sold nothing.
leaders[].tradesinteger | nullBuys and sells together.
truncatedbooleantrue 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