mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
remove order filled cb from handle_stoploss_on_exchange
This commit is contained in:
@@ -1232,10 +1232,6 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
# We check if stoploss order is fulfilled
|
# We check if stoploss order is fulfilled
|
||||||
if stoploss_order and stoploss_order['status'] in ('closed', 'triggered'):
|
if stoploss_order and stoploss_order['status'] in ('closed', 'triggered'):
|
||||||
trade.exit_reason = ExitType.STOPLOSS_ON_EXCHANGE.value
|
trade.exit_reason = ExitType.STOPLOSS_ON_EXCHANGE.value
|
||||||
strategy_safe_wrapper(
|
|
||||||
self.strategy.order_filled, default_retval=None)(
|
|
||||||
pair=trade.pair, trade=trade, order=slo,
|
|
||||||
current_time=datetime.now(timezone.utc))
|
|
||||||
self._notify_exit(trade, "stoploss", True)
|
self._notify_exit(trade, "stoploss", True)
|
||||||
self.handle_protections(trade.pair, trade.trade_direction)
|
self.handle_protections(trade.pair, trade.trade_direction)
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user