del open_orders

This commit is contained in:
Nicolás Sánchez 2025-09-03 23:10:14 -03:00
parent b36d73306d
commit 5dde1a1def
2 changed files with 6 additions and 6 deletions

View File

@ -37,9 +37,9 @@ class ConfigHandler:
"force_restart_if_retries_exhausted": False, "force_restart_if_retries_exhausted": False,
"check_old_long_price": False #switch_to_short should flip this to True unless stated "check_old_long_price": False #switch_to_short should flip this to True unless stated
} }
if self.broker.get_exchange_name()=="kucoin": # if self.broker.get_exchange_name()=="kucoin":
self.default_config_dictionary["concurrent_safety_orders"]=1 # self.default_config_dictionary["concurrent_safety_orders"]=1
self.default_config_dictionary["boosted_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_file_path = f"configs/{pair.split('/')[0]}{pair.split('/')[1]}.json"
self.config_dictionary = self.default_config_dictionary.copy() self.config_dictionary = self.default_config_dictionary.copy()

View File

@ -318,9 +318,6 @@ def main_routine():
online_pairs.append(f"{instance.base}{instance.quote}") online_pairs.append(f"{instance.base}{instance.quote}")
pairs_to_fetch.append(instance.status.get_pair()) pairs_to_fetch.append(instance.status.get_pair())
#Delete no longer used data
del open_orders
#Fetch prices #Fetch prices
price_list = broker.get_prices(pairs_to_fetch) price_list = broker.get_prices(pairs_to_fetch)
#Here, assign the prices to the dusters (if any) #Here, assign the prices to the dusters (if any)
@ -331,6 +328,9 @@ def main_routine():
except Exception as e: except Exception as e:
broker.logger.log_this(f"Error in thread - {e}") broker.logger.log_this(f"Error in thread - {e}")
#Delete no longer used data
del open_orders
curr = 0 curr = 0
top = 0 top = 0
long_traders_status_strings = [] long_traders_status_strings = []