Credit Cost
TBD
Supported Chains
BASE_MAINNETBSC_MAINNETETH_MAINNETGNOSIS_MAINNETPOLYGON_MAINNETOPTIMISM_MAINNETMEGAETH_MAINNET
This query is currently in Beta. It is stable for testing and evaluation but may undergo changes in schema or behavior as we continue to improve it. No API credits are currently charged.We welcome your feedback so please reach out to us directly to report issues or request features.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain_name | enum | Yes | Chain name to filter events (e.g., BASE_MAINNET, ETH_MAINNET, BSC_MAINNET) |
wallet_address | string | Yes | The wallet address to query |
Query
You can query theupnlForWallet endpoint to retrieve detailed PnL metrics for a wallet.
Basic Query
Complete Query
Response Format
Here’s an example of the response data structure:Field Descriptions
| Field | Type | Description |
|---|---|---|
token_address | string | Token contract address (lowercase, 0x-prefixed) |
cost_basis | float | Average cost basis per token in USD |
current_price | float | Current market price per token in USD |
pnl_realized_usd | float | Realized PnL in USD from completed trades |
pnl_unrealized_usd | float | Unrealized PnL in USD at the latest price |
net_balance_change | string | Net token movement (inflow minus outflow, past 7 days) |
marketcap_usd | string | Estimated market capitalization in USD |
contract_metadata | object | Token contract metadata |