remove legacy sl management code from handle_insufficient_funds

This commit is contained in:
Axel-CH 2023-10-06 10:38:14 -04:00
parent d5a0759051
commit 2565d509a6

View File

@ -439,10 +439,6 @@ class FreqtradeBot(LoggingMixin):
try:
fo = self.exchange.fetch_order_or_stoploss_order(order.order_id, order.ft_pair,
order.ft_order_side == 'stoploss')
if order.ft_order_side == 'stoploss':
if fo and fo['status'] == 'open':
# Assume this as the open stoploss order
trade.stoploss_order_id = order.order_id
if fo:
logger.info(f"Found {order} for trade {trade}.")
self.update_trade_state(trade, order.order_id, fo,