Merge branch 'develop' into backtest_live_models

This commit is contained in:
Wagner Costa Santos
2022-09-26 17:23:44 -03:00
27 changed files with 866 additions and 774 deletions

View File

@@ -114,7 +114,7 @@ class Backtesting:
self.pairlists = PairListManager(self.exchange, self.config)
if 'VolumePairList' in self.pairlists.name_list:
raise OperationalException("VolumePairList not allowed for backtesting. "
"Please use StaticPairlist instead.")
"Please use StaticPairList instead.")
if 'PerformanceFilter' in self.pairlists.name_list:
raise OperationalException("PerformanceFilter not allowed for backtesting.")
@@ -161,9 +161,6 @@ class Backtesting:
self.init_backtest()
def __del__(self):
self.cleanup()
@staticmethod
def cleanup():
LoggingMixin.show_output = True

View File

@@ -61,7 +61,7 @@ class Hyperopt:
"""
Hyperopt class, this class contains all the logic to run a hyperopt simulation
To run a backtest:
To start a hyperopt run:
hyperopt = Hyperopt(config)
hyperopt.start()
"""

View File

@@ -140,7 +140,7 @@ class ChannelManager:
Disconnect all Channels
"""
with self._lock:
for websocket, channel in self.channels.items():
for websocket, channel in self.channels.copy().items():
if not channel.is_closed():
await channel.close()
@@ -154,7 +154,7 @@ class ChannelManager:
"""
with self._lock:
message_type = data.get('type')
for websocket, channel in self.channels.items():
for websocket, channel in self.channels.copy().items():
try:
if channel.subscribed_to(message_type):
await channel.send(data)