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

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

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

Response fields of One wallet's profit across tokens
FieldType
positionsobject[]
positions[].tokenAddressstring
positions[].symbolstring | null
positions[].namestring | null
positions[].realizedPnlUsd30dnumber | null
positions[].realizedPnlUsd24hnumber | null
positions[].realizedPnlPct30dnumber | null
positions[].buys30dnumber | null
positions[].sells30dnumber | null
positions[].heldUsdnumber | 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