apps
apps copied to clipboard
Add realized & unrealized P&L to Portfolio and Prime pages
Holdings
- [ ] Add
Realized P&Lcolumn (after Market value) to theHoldingstable- Data: based on the sum of
InvestorTransaction.realizedProfitFifofrom the subquery, wherepool,trancheandaccountmatch the given user and pool/tranche for the Holdings row - Should have tooltip on the
Realized P&Lcolumn header with copy:Realized profit / loss from executed redemptions
- Data: based on the sum of
- [ ] Add
Unrealized P&Lcolumn (after Realized P&L) to theHoldingstable- Data: using the
TrancheBalance.unrealizedProfitproperty from the subquery - Should have tooltip on the
Realized P&Lcolumn header with copy:Unrealized profit / loss from current holdings (based on FiFo-weighted sales at the current token price)
- Data: using the
Overview
- [ ] Add
Total P&Lnext toCurrent portfolio valuein theOverviewsection, that is the sum of all theRealized P&L+Unrealized P&Lvalues in the Holdings table- Value should be green, and have + or - at the start depending on whether the value is positive or negative.
- Should have tooltip on the
Total P&Lname with copy:Total realized profit / loss from executed redemptions + unrealized profit / loss from current holdings (based on FiFo-weighted sales at the current token price)
Design
Do we want the same data for the portfolio page? since we are sharing the component @hieronx
Yep @kattylucy! Just the screenshot is from the Prime page, but the ticket applies to both.
@kattylucy this should already be covered in the Prime/Portfolio tickets that we have. If you have all the info you need for realized/unrealized P&L in the other tickets, this ticket can be closed.