From 12ea528863efa259dbdf91295cc645a02a668196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Fri, 10 Jan 2025 10:12:52 -0300 Subject: [PATCH] Added is_paused to status_dict --- changelog.txt | 3 +++ main.py | 2 +- trader.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index 4923272..a2db1f3 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2025.01.10: +. Added is_paused to status_dict. + 2024.12.14: . Modified waitress parameters. diff --git a/main.py b/main.py index 474ef3a..a457e2c 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,7 @@ In case the permissions of the certificate changes, reset them this way: # ll /etc/letsencrypt/ ''' -version = "2024.12.14" +version = "2025.01.10" ''' Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors diff --git a/trader.py b/trader.py index 86e571f..ae429ba 100755 --- a/trader.py +++ b/trader.py @@ -368,7 +368,8 @@ class trader: if self.so is not None and self.so["price"] is not None and self.so!=self.broker.get_empty_order(): self.status_dict["next_so_price"]=self.so["price"] self.status_dict["is_boosted"]=self.is_boosted - self.status_dict["is_short"]=self.is_short + self.status_dict["is_short"]=self.is_short + self.status_dict["is_paused"]=self.pause self.status_dict["quote_spent"]=self.total_amount_of_quote self.status_dict["base_bought"]=self.total_amount_of_base self.status_dict["so_amount"]=self.safety_order_index