Skip to main content
This GraphQL query provides detailed financial metrics, including unrealized and realized profit and loss (PnL), current balance, and transaction insights for each token held by a specific wallet address.

Credit Cost

1 per call

Supported Chains

  • BASE_MAINNET
  • BSC_MAINNET
  • ETH_MAINNET
  • GNOSIS_MAINNET
  • MEGAETH_MAINNET
  • OPTIMISM_MAINNET
  • POLYGON_MAINNET
  • ROBINHOOD_MAINNET
Estimate your monthly cost for this API using the Pricing Calculator.

Parameters

chain_name
enum
required
Blockchain network to filter events
wallet_address
string
required
The wallet address to query

Query

You can query the upnlForWallet endpoint to retrieve detailed PnL metrics for a wallet.

Response Format

Here’s an example of the response data structure:

Field Descriptions

cost_basis
float
Cost basis per token
contract_metadata
object
Token contract metadataType: TokenContractMetadata
net_balance_change
string
Net token movement (inflow - outflow) in the last 7 days, not the actual on-chain balance
token_address
string
Token contract address (lowercase with 0x prefix)
current_price
float
Current price per token
pnl_realized_usd
float
Realized profit and loss in USD
pnl_unrealized_usd
float
Unrealized profit and loss in USD
marketcap_usd
string
Market capitalization in USD