Add unrealized PL to profit screen
This commit is contained in:
@@ -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"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user