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:
parent
20392e824f
commit
33d09010f3
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue