mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
remove duplicate call of order_filled callback
This commit is contained in:
parent
ea634e5cef
commit
f60d6c8f65
|
@ -476,10 +476,6 @@ class FreqtradeBot(LoggingMixin):
|
||||||
if not trade.is_open:
|
if not trade.is_open:
|
||||||
# Trade was just closed
|
# Trade was just closed
|
||||||
trade.close_date = trade.date_last_filled_utc
|
trade.close_date = trade.date_last_filled_utc
|
||||||
strategy_safe_wrapper(
|
|
||||||
self.strategy.order_filled, default_retval=None)(
|
|
||||||
pair=trade.pair, trade=trade, order=order_obj,
|
|
||||||
current_time=datetime.now(timezone.utc))
|
|
||||||
self.order_close_notify(trade, order_obj,
|
self.order_close_notify(trade, order_obj,
|
||||||
order_obj.ft_order_side == 'stoploss',
|
order_obj.ft_order_side == 'stoploss',
|
||||||
send_msg=prev_trade_state != trade.is_open)
|
send_msg=prev_trade_state != trade.is_open)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user