Add asset P&L to Key metrics
For assets with valuation method == oracle, add Realized P&L and Unrealized P&L to the Key metrics card, above the YTM properties.
Realized P&L: Asset.sumRealizedProfitFifo from the subquery
Unrealized P&L: Asset.unrealizedProfitAtMarketPrice from the subquery
Is there a fund I can test this with @kattylucy @hieronx ? I can't seem to find one
Not working for me @kattylucy.
There seems to be an issue with calculating the Unrealized P&L
https://app-ff-production.k-f.dev/#/pools/4139607887/assets/8
Good catch! Thankss @0x4Graham
Fixed! Nice work @kattylucy