fix: make sure wallet_summary exists
This commit is contained in:
@@ -1882,7 +1882,11 @@ class Backtesting:
|
|||||||
dt_appendix,
|
dt_appendix,
|
||||||
market_change_data=combined_res,
|
market_change_data=combined_res,
|
||||||
analysis_results=self.analysis_results,
|
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},
|
strategy_files={s.get_strategy_name(): s.__file__ for s in self.strategylist},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user