From 559b95819ad1030a17ebd1857dee12e4c8bebc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Sun, 31 Aug 2025 21:51:48 -0300 Subject: [PATCH] fixed partial profit reset --- trader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trader.py b/trader.py index b6d3c1d..b947c80 100755 --- a/trader.py +++ b/trader.py @@ -756,6 +756,9 @@ class trader: else: profit = filled_order["cost"]-self.status.get_quote_spent()-self.status.get_fees_paid_in_quote()-self.parse_fees(filled_order)[1] profit+=self.status.get_partial_profit() + + #Reset partial profit + self.status.set_partial_profit(0) #Checks if some base was left over. base_profit = max(self.status.get_base_bought()-filled_order["filled"],0) #To avoid negative numbers in base_profit