Add unfilledtimeout to required props for backtesting

This commit is contained in:
Matthias 2022-01-22 15:44:33 +01:00
parent 49cecf1cb2
commit 44e616c264
2 changed files with 2 additions and 2 deletions

View File

@ -456,6 +456,7 @@ SCHEMA_BACKTEST_REQUIRED = [
'dry_run_wallet',
'dataformat_ohlcv',
'dataformat_trades',
'unfilledtimeout',
]
SCHEMA_MINIMAL_REQUIRED = [

View File

@ -564,12 +564,11 @@ class Backtesting:
orders=[]
)
trade.adjust_stop_loss(trade.open_rate, self.strategy.stoploss, initial=True)
order_filled = self._get_order_filled(propose_rate, row)
order = Order(
id=self.order_id_counter,
ft_trade_id=trade.id,
ft_is_open=not order_filled,
ft_is_open=True,
ft_pair=trade.pair,
order_id=str(self.order_id_counter),
symbol=trade.pair,