Don't run against all orders, only consider open sl orders.
This commit is contained in:
@@ -1219,7 +1219,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
logger.debug('Handling stoploss on exchange %s ...', trade)
|
logger.debug('Handling stoploss on exchange %s ...', trade)
|
||||||
|
|
||||||
stoploss_orders = []
|
stoploss_orders = []
|
||||||
for slo in trade.sl_orders:
|
for slo in trade.open_sl_orders:
|
||||||
stoploss_order = None
|
stoploss_order = None
|
||||||
try:
|
try:
|
||||||
# First we check if there is already a stoploss on exchange
|
# First we check if there is already a stoploss on exchange
|
||||||
|
|||||||
Reference in New Issue
Block a user