From 33d09010f3ebb5a0285e0cbb3c7f0360bf8781cd Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 1 Apr 2026 15:43:16 -0700 Subject: [PATCH] fix: correct DCA history keys in charts.py (effective_price, tokens_minted) Co-Authored-By: Claude Opus 4.6 --- dashboard/charts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/charts.py b/dashboard/charts.py index 8896b73..26e494c 100644 --- a/dashboard/charts.py +++ b/dashboard/charts.py @@ -53,8 +53,8 @@ def fig_dca_comparison(results: dict) -> go.Figure: for name, dca_result in results.items(): history = dca_result.order.history chunks_x = list(range(len(history))) - prices = [h["price"] for h in history] - tokens = [h["tokens"] for h in history] + prices = [h["effective_price"] for h in history] + tokens = [h["tokens_minted"] for h in history] import numpy as np cumulative = np.cumsum(tokens).tolist()