del open_orders
This commit is contained in:
parent
b36d73306d
commit
5dde1a1def
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
6
main.py
6
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 = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue