This endpoint returns the Profit and Loss (PnL) details of a web3 wallet. This includes Unrealized PnL, Realized PnL, Net Invested amounts and filters for asset categories like Non Fungible Tokens (NFTs). It uses the FIFO (First In, First Out) standard for calculations, providing accurate insights into wallet performance. Ideal for tracking and analyzing financial outcomes of wallet activity. The very first request for a wallet might result in a 503 which should be retried later. Wallets with over 1 million transactions are not supported.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
The web3 wallet address A wallet address, which can be either an EVM or Solana address
^0x[a-fA-F0-9]{40}$"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
Denominated currency value of returned prices
eth, btc, usd, eur, krw, rub, gbp, aud, cad, inr, jpy, nzd, try, zar, cny, chf Calculate PnL only for specified chains (comma-separated list).
25["ethereum", "polygon"]Account only for PnL related to given fungible assets (comma-separated list). Maximum of 100 fungible IDs allowed.
When filtering by fungible_ids or fungible_implementations, assets without available prices are automatically excluded from calculations instead of causing an error. Excluded assets are returned in the response metadata for transparency.
10044Account only for PnL related to given fungible asset implementations (comma-separated list of chain:address pairs). Maximum of 100 implementations allowed. example: "base:0xae16c445d8a4082cecb49a9465e4dd5499df947d,ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
When filtering by fungible_ids or fungible_implementations, assets without available prices are automatically excluded from calculations instead of causing an error. Excluded assets are returned in the response metadata for transparency.
100Only account sales since the given date. A unix timestamp in milliseconds. Note: high performance is only guaranteed for certain time ranges (now, 1 day ago, 1 week ago, 1 month ago, 1 year ago, or the beginning of the year).
13"1688842525735"
Only account sales till the given date. A unix timestamp in milliseconds. Note: high performance is only guaranteed for certain time ranges (now, 1 day ago, 1 week ago, 1 month ago, 1 year ago, or the beginning of the year).
13"1688842525735"
Response for requested wallet's pnl
Metadata about the PnL calculation (only present when assets were excluded from the calculation). The structure matches the filter type used in the request:
fungible_ids, the meta contains an excluded_fungible_ids arrayfungible_implementations, the meta contains an excluded_fungible_implementations array