diff --git a/lean/commands/optimize.py b/lean/commands/optimize.py index 48ede3d0..8b686bee 100644 --- a/lean/commands/optimize.py +++ b/lean/commands/optimize.py @@ -389,8 +389,8 @@ def optimize(project: Path, created=datetime.now(), completed=True, progress=1.0, - runtimeStatistics=optimal_results["RuntimeStatistics"], - statistics=optimal_results["Statistics"]) + runtimeStatistics=optimal_results["runtimeStatistics"], + statistics=optimal_results["statistics"]) logger.info(f"Optimal parameters: {optimal_parameters.replace(':', ': ').replace(',', ', ')}") logger.info(f"Optimal backtest results:")