Profit & Loss analysis (Yield for Portfolio)
API endpoints
- Profit and Losses for ERC-20 tokens and DeFi positions (EVM for now): Get PnL API method
- Yield recommendations: Get Yield Recommendations API method
- Swap PnL (alfa for Sushiswap): Get Swaps PnL API method
How this data may look like?
We visualized this data on our dashboard. We enable you to evaluate not only the PnL of token holdings but also of DeFi protocols. So we provide the following data for it:
- Balances with top-ups and withdrawals to evaluate yield during intervals of constant balance, excluding position deposits from profit calculations.
- PnL - complex metric (methodology described here)
- Profit comes from protocol rewards and price growth.
- Losses stem from rebalancing (for LP pools), liabilities (borrow positions), and price declines.
- We also provide a detailed rewards history to analyze protocol performance without the impact of price volatility.
- For some assets there is advanced rewards analytics. For example for ETH Holders, Stablecoins holders, Stablecoins Suppliers in Aave we propose "Potential rewards" analysis which is show how much you would earn using alternative opportunities in crypto. For example, ETH holders we compare to Staking and Stablecoins in Aave we compare to Morpho.


Updated 25 days ago