diff --git a/tradingagents/graph/trading_graph.py b/tradingagents/graph/trading_graph.py index acd461d3..af3ced2f 100644 --- a/tradingagents/graph/trading_graph.py +++ b/tradingagents/graph/trading_graph.py @@ -264,7 +264,7 @@ class TradingAgentsGraph: log_path = directory / f"full_states_log_{trade_date}.json" with open(log_path, "w", encoding="utf-8") as f: - json.dump(self.log_states_dict, f, indent=4) + json.dump(self.log_states_dict[str(trade_date)], f, indent=4) def reflect_and_remember(self, returns_losses): """Reflect on decisions and update memory based on returns."""