Use lock for trade entries, too

This commit is contained in:
Matthias
2023-04-25 11:45:35 +02:00
parent 59f9f4d467
commit 11c9f96d23
+1
View File
@@ -490,6 +490,7 @@ class FreqtradeBot(LoggingMixin):
# Create entity and execute trade for each pair from whitelist # Create entity and execute trade for each pair from whitelist
for pair in whitelist: for pair in whitelist:
try: try:
with self._exit_lock:
trades_created += self.create_trade(pair) trades_created += self.create_trade(pair)
except DependencyException as exception: except DependencyException as exception:
logger.warning('Unable to create trade for %s: %s', pair, exception) logger.warning('Unable to create trade for %s: %s', pair, exception)