From c8d16a717d8bb31a43d8284320e9cec84761ea3f Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Tue, 31 Oct 2023 18:18:57 +1100 Subject: [PATCH] Sort BacktestNode streaming data --- nautilus_trader/backtest/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nautilus_trader/backtest/node.py b/nautilus_trader/backtest/node.py index fcfc08f56869..9f904b8c14d7 100644 --- a/nautilus_trader/backtest/node.py +++ b/nautilus_trader/backtest/node.py @@ -302,7 +302,7 @@ def _run_streaming( engine.add_data( data=capsule_to_list(chunk), validate=False, # Cannot validate mixed type stream - sort=False, # Already sorted from kmerge + sort=True, # Temporarily sorting # Already sorted from kmerge ) engine.run( run_config_id=run_config_id,