Skip to content

Commit

Permalink
BE: fix bonds pnl
Browse files Browse the repository at this point in the history
  • Loading branch information
andreipradan committed Feb 20, 2025
1 parent d67acff commit bb02ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mainframe/finance/viewsets/bonds.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def list(self, request, *args, **kwargs):
for currency in bond_currencies
},
**{
f"pnl_{currency}": Sum("net", filter=Q(currency=currency))
f"pnl_{currency}": Sum("pnl", filter=Q(currency=currency))
for currency in bond_currencies
},
**{
Expand Down

0 comments on commit bb02ebe

Please sign in to comment.