Wallets API
One wallet's profit across tokens
A wallet's realised profit across the tokens it trades on one chain, per token, over 24 hours and 30 days; takes a wallet address, not a token.
GET
/api/external/wallet-analysis/wallet-pnl/{chain}/{address}Chains
- Solana SOL
- BNB Chain BNB
- Ethereum ETH
- Stable STABLE
- Base BASE
- Robinhood Chain RHC
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/wallet-analysis/wallet-pnl/SOL/<address>"
| Parameter | Description |
|---|---|
chainpath · string · required | The chain to scope the book to. Every trading chain but ARC is served. The source would answer across all of them; scoping keeps one response describing one chain. CELO, ARB, OP and SCROLL return 400 here. |
addresspath · string · required | The wallet address. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type |
|---|---|
positions | object[] |
positions[].tokenAddress | string |
positions[].symbol | string | null |
positions[].name | string | null |
positions[].realizedPnlUsd30d | number | null |
positions[].realizedPnlUsd24h | number | null |
positions[].realizedPnlPct30d | number | null |
positions[].buys30d | number | null |
positions[].sells30d | number | null |
positions[].heldUsd | number | null |
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