Reset sell-reason if order is cancelled

This commit is contained in:
Matthias
2022-03-01 19:30:16 +01:00
parent df726a54f8
commit a2c9879375
2 changed files with 7 additions and 1 deletions

View File

@@ -1108,6 +1108,7 @@ class FreqtradeBot(LoggingMixin):
trade.close_date = None
trade.is_open = True
trade.open_order_id = None
trade.sell_reason = None
else:
# TODO: figure out how to handle partially complete sell orders
reason = constants.CANCEL_REASON['PARTIALLY_FILLED_KEEP_OPEN']