From daae08d534bb0f43b59f4d32118f4361fefc2021 Mon Sep 17 00:00:00 2001 From: David Brazda Date: Tue, 9 May 2023 16:28:41 +0200 Subject: [PATCH] bugfix --- v2realbot/controller/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2realbot/controller/services.py b/v2realbot/controller/services.py index c644f68..f348863 100644 --- a/v2realbot/controller/services.py +++ b/v2realbot/controller/services.py @@ -63,10 +63,10 @@ def get_stratin(id: UUID): def get_runner(id: UUID): for i in db.runners: if str(i.id) == str(id): - i.run_profit = round(i.run_instance.state.profit,2) + i.run_profit = round(float(i.run_instance.state.profit),2) i.run_trade_count = len(i.run_instance.state.tradeList) i.run_positions = i.run_instance.state.positions - i.run_avgp = round(i.run_instance.state.avgp,3) + i.run_avgp = round(float(i.run_instance.state.avgp),3) return (0, i) return (-2, "not found")