|
|
@ -31,7 +31,7 @@ class Profit(LoginRequiredMixin, OTPRequiredMixin, ObjectList):
|
|
|
|
details = account.client.get_account()
|
|
|
|
details = account.client.get_account()
|
|
|
|
item = {
|
|
|
|
item = {
|
|
|
|
"account": account,
|
|
|
|
"account": account,
|
|
|
|
"pl": D(account.initial_balance) - D(details["balance"]),
|
|
|
|
"pl": D(details["balance"]) - D(account.initial_balance),
|
|
|
|
"unrealizedPL": D(details["unrealizedPL"]),
|
|
|
|
"unrealizedPL": D(details["unrealizedPL"]),
|
|
|
|
"balance": details["balance"],
|
|
|
|
"balance": details["balance"],
|
|
|
|
"currency": details["currency"],
|
|
|
|
"currency": details["currency"],
|
|
|
|