Add unrealized PL to profit screen

This commit is contained in:
2022-12-08 07:20:46 +00:00
parent 103a15f0e3
commit a18572ebda
2 changed files with 4 additions and 2 deletions

View File

@@ -26,10 +26,10 @@ class Profit(LoginRequiredMixin, OTPRequiredMixin, ObjectList):
for account in accounts:
try:
details = account.client.get_account()
pl = details["pl"]
item = {
"account": account,
"pl": float(pl),
"pl": float(details["pl"]),
"unrealizedPL": float(details["unrealizedPL"]),
"balance": details["balance"],
"currency": details["currency"],
}