Fix random uvicorn error

This commit is contained in:
Matthias
2023-03-26 18:18:52 +02:00
parent 1c9abd9e35
commit 80a27bc0db
2 changed files with 3 additions and 13 deletions

View File

@@ -1032,7 +1032,7 @@ class Backtesting:
order.safe_remaining * order.ft_price / trade.leverage),
direction='short' if trade.is_short else 'long')
# Delete trade if no successful entries happened (if placing the new order failed)
if trade.open_order_id is None and trade.nr_of_successful_entries == 0 :
if trade.open_order_id is None and trade.nr_of_successful_entries == 0:
return True
self.replaced_entry_orders += 1
else: