mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
fix current_time parameter of order_filled usage in backtest
This commit is contained in:
@@ -607,7 +607,7 @@ class Backtesting:
|
||||
self.strategy.order_filled,
|
||||
default_retval=None)(
|
||||
pair=trade.pair, trade=trade, # type: ignore[arg-type]
|
||||
order=order, current_time=datetime.now(timezone.utc))
|
||||
order=order, current_time=current_date)
|
||||
|
||||
if not (order.ft_order_side == trade.exit_side and order.safe_amount == trade.amount):
|
||||
# trade is still open
|
||||
|
||||
Reference in New Issue
Block a user