diff --git a/config_handler.py b/config_handler.py index 4d0adf8..9c6c376 100644 --- a/config_handler.py +++ b/config_handler.py @@ -37,9 +37,9 @@ class ConfigHandler: "force_restart_if_retries_exhausted": False, "check_old_long_price": False #switch_to_short should flip this to True unless stated } - if self.broker.get_exchange_name()=="kucoin": - self.default_config_dictionary["concurrent_safety_orders"]=1 - self.default_config_dictionary["boosted_concurrent_safety_orders"]=1 + # if self.broker.get_exchange_name()=="kucoin": + # self.default_config_dictionary["concurrent_safety_orders"]=1 + # self.default_config_dictionary["boosted_concurrent_safety_orders"]=1 self.config_file_path = f"configs/{pair.split('/')[0]}{pair.split('/')[1]}.json" self.config_dictionary = self.default_config_dictionary.copy() diff --git a/main.py b/main.py index 86b9314..7e282a7 100644 --- a/main.py +++ b/main.py @@ -318,9 +318,6 @@ def main_routine(): online_pairs.append(f"{instance.base}{instance.quote}") pairs_to_fetch.append(instance.status.get_pair()) - #Delete no longer used data - del open_orders - #Fetch prices price_list = broker.get_prices(pairs_to_fetch) #Here, assign the prices to the dusters (if any) @@ -331,6 +328,9 @@ def main_routine(): except Exception as e: broker.logger.log_this(f"Error in thread - {e}") + #Delete no longer used data + del open_orders + curr = 0 top = 0 long_traders_status_strings = []