mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
remove order filled cb from handle_stoploss_on_exchange
This commit is contained in:
parent
e07f3d266e
commit
b2a6722687
|
@ -1232,10 +1232,6 @@ class FreqtradeBot(LoggingMixin):
|
|||
# We check if stoploss order is fulfilled
|
||||
if stoploss_order and stoploss_order['status'] in ('closed', 'triggered'):
|
||||
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.handle_protections(trade.pair, trade.trade_direction)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue
Block a user