Avoid re-implementing existing feature

This commit is contained in:
Matthias
2023-09-12 07:00:55 +02:00
parent ee9d2c637a
commit af1054fa70

View File

@@ -484,8 +484,7 @@ class FreqtradeBot(LoggingMixin):
Trade.session.refresh(trade)
if not trade.is_open:
# Trade was just closed
trade.close_date = max([o.order_filled_date for o in trade.orders
if o.order_filled_date])
trade.close_date = trade.date_last_filled_utc
self.order_close_notify(trade, order_obj,
order_obj.ft_order_side == 'stoploss',
send_msg=prev_trade_state != trade.is_open)