diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 9cc26ad77..76c48a444 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -490,7 +490,8 @@ class FreqtradeBot(LoggingMixin): # Create entity and execute trade for each pair from whitelist for pair in whitelist: try: - trades_created += self.create_trade(pair) + with self._exit_lock: + trades_created += self.create_trade(pair) except DependencyException as exception: logger.warning('Unable to create trade for %s: %s', pair, exception)