post https://api.lambda.p2p.org/api/v1/chains//wallet-pnl-history
The Wallet PnL (Profit and Loss) data is provided for entire wallets, aggregating all positions and tokens within each specified wallet address.
Calculation logic
- The current version is limited to open DeFi positions, while the next update will support historical closed positions as well.
- We separate the user's own funds from rewards. This allows us to account for both Profit & Loss movements and rewards, while incoming transfers, top-ups, and withdrawals are not considered as sources of income or loss.
For example, if you staked 1 ETH with Lido and later received 1 stETH, only rewards generated by Lido are counted, not the income transfer or your initial balance.
- We support blue chip tokens and DeFi positions across major EVM chains.
More details in the article
This endpoint allows you to retrieve the historical PnL for complete wallet portfolios by providing a list of wallet addresses - all tokens and DeFi positions within these wallets will be automatically included in the calculation.
