40. Portfolio performance and P&L
Calculate holdings, cost basis, realized and unrealized profit, cash flows, fees, drawdowns, and benchmark-relative returns. Handle transfers, wrapped assets, staking rewards, liquidity positions, and missing acquisition records.