From c2738e05987af383c8da665c257ad7821602fe56 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Thu, 28 Mar 2024 17:52:07 +1100 Subject: [PATCH] Fix BacktestNode streaming data management --- RELEASES.md | 2 +- nautilus_trader/backtest/node.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index aa267489f0c2..c5191accb5cc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -14,7 +14,7 @@ Released on TBD (UTC). - Renamed `Indicator.handle_book_mbo` and `Indicator.handle_book_mbp` to `handle_book` (consolidated) ### Fixes -None +- Fixed `BacktestNode` streaming data management (was not clearing between chunks), thanks for the report @dpmabo --- diff --git a/nautilus_trader/backtest/node.py b/nautilus_trader/backtest/node.py index f7e3d1a9261e..e5dd2c3d8ed6 100644 --- a/nautilus_trader/backtest/node.py +++ b/nautilus_trader/backtest/node.py @@ -332,6 +332,7 @@ def _run_streaming( run_config_id=run_config_id, streaming=True, ) + engine.clear_data() engine.end() engine.dispose()