Use lock for trade entries, too

This commit is contained in:
Matthias
2023-04-25 11:45:35 +02:00
parent 59f9f4d467
commit 11c9f96d23

View File

@@ -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)