fix: correct DCA history keys in charts.py (effective_price, tokens_minted)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-01 15:43:16 -07:00
parent 20392e824f
commit 33d09010f3
1 changed files with 2 additions and 2 deletions

View File

@ -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()