remove unnecessary check

This commit is contained in:
Stefano Ariestasia 2023-09-13 15:09:13 +09:00
parent 7655bf6ea7
commit 552f947248

View File

@ -66,11 +66,7 @@ class FullTradesFilter(IPairList):
self.log_once("FullTradesFilter is not available in this mode.", logger.warning) self.log_once("FullTradesFilter is not available in this mode.", logger.warning)
return pairlist return pairlist
# Skip performance-based sorting if no performance data is available
num_open = len(trades) num_open = len(trades)
if num_open == 0:
return pairlist
max_trades = self._config['max_open_trades'] max_trades = self._config['max_open_trades']
# self.log_once(f"Max open trades: {max_trades}, current open trades: {num_open}", logger.info) # self.log_once(f"Max open trades: {max_trades}, current open trades: {num_open}", logger.info)