fix: make sure wallet_summary exists

This commit is contained in:
Matthias
2025-06-15 07:21:41 +02:00
parent a8295de2b9
commit 6c24925522
+5 -1
View File
@@ -1882,7 +1882,11 @@ class Backtesting:
dt_appendix,
market_change_data=combined_res,
analysis_results=self.analysis_results,
wallet_summary={s: x["wallet_summary"] for s, x in self.all_bt_content.items()},
wallet_summary={
s: x["wallet_summary"]
for s, x in self.all_bt_content.items()
if "wallet_summary" in x
},
strategy_files={s.get_strategy_name(): s.__file__ for s in self.strategylist},
)