From 9ad0b8438ba30c898dcc1ca1f801e6a6367cb15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20S=C3=A1nchez?= Date: Wed, 4 Dec 2024 16:39:52 -0300 Subject: [PATCH] switch_to_long error --- .gitignore | 4 +++- main.py | 2 +- trader.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c402e0a..eacbdcc 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,6 @@ utils/data/binance.db utils/data/okx.db utils/data/gateio.db utils/data/kucoin.db -utils/data/test.py \ No newline at end of file +utils/data/bybit.db +utils/data/test.py +profits/db_read.py \ No newline at end of file diff --git a/main.py b/main.py index ad1d0a8..db26e4b 100644 --- a/main.py +++ b/main.py @@ -22,7 +22,7 @@ In case the permissions of the certificate changes, reset them this way: # ll /etc/letsencrypt/ ''' -version = "2024.12.02" +version = "2024.12.04" ''' 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 57e147f..ab85c44 100755 --- a/trader.py +++ b/trader.py @@ -742,6 +742,7 @@ class trader: self.is_short = False except Exception as e: self.broker.logger.log_this(f"Exception in switch_to_long while switching config files: {e}",1,self.pair) + self.quit = True return 1 #Remove old_long file (if it exists)