Use correct sell reason in case of custom sell reason.

This commit is contained in:
Rokas Kupstys
2021-04-25 09:48:24 +03:00
parent e58fe7a8cb
commit 98f6fce2ec
2 changed files with 3 additions and 3 deletions

View File

@@ -1194,7 +1194,7 @@ class FreqtradeBot(LoggingMixin):
if not strategy_safe_wrapper(self.strategy.confirm_trade_exit, default_retval=True)(
pair=trade.pair, trade=trade, order_type=order_type, amount=amount, rate=limit,
time_in_force=time_in_force,
sell_reason=sell_reason.sell_type.value):
sell_reason=sell_reason.sell_reason):
logger.info(f"User requested abortion of selling {trade.pair}")
return False