Don't run against all orders, only consider open sl orders.

This commit is contained in:
Matthias
2023-12-23 10:31:03 +01:00
parent 1db4732648
commit 33bd433c22

View File

@@ -1219,7 +1219,7 @@ class FreqtradeBot(LoggingMixin):
logger.debug('Handling stoploss on exchange %s ...', trade)
stoploss_orders = []
for slo in trade.sl_orders:
for slo in trade.open_sl_orders:
stoploss_order = None
try:
# First we check if there is already a stoploss on exchange