Calculate profit in XMR

This commit is contained in:
2023-05-05 14:58:58 +01:00
parent 0be1b98072
commit a84fff2492
6 changed files with 12 additions and 5 deletions

View File

@@ -239,7 +239,7 @@ class LinkGroupSimulation(LoginRequiredMixin, OTPRequiredMixin, ObjectRead):
print("COLLAPSED", collapsed)
self.extra_context = {"collapsed": collapsed}
self.extra_context["pay_list"] = pay_list
self.extra_context["total_profit"] = checks["total_profit"]
self.extra_context["total_profit"] = checks["total_profit_in_xmr"]
return pay_list

View File

@@ -29,9 +29,11 @@ class Profit(LoginRequiredMixin, OTPRequiredMixin, ObjectRead):
"Open trade value": res["open_trade_value"],
"Total": res["total_with_trades"],
"Profit": res["total_profit"],
"Profit in XMR": res["total_profit_in_xmr"],
"Remaining before withdrawal": res["total_remaining"],
"Total (without open trades)": res["total_usd"],
"Profit (without open trades)": res["profit"],
"Profit (without open trades) in XMR": res["profit_in_xmr"],
"Remaining before withdrawal (without open trades)": res["remaining"],
"Base balance required": res["total_base_usd"],
"Amount above base balance to trigger withdrawal": res[