Fix amp-stats long-range candles via OKX history endpoints.

Recent candles cap near 60d; continue with history-index/history candles and color profit green/red.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-23 02:53:36 +08:00
parent b64c742fc9
commit 0a9e3aa95c
6 changed files with 101 additions and 7 deletions
+1 -1
View File
@@ -178,7 +178,7 @@
const profit =
r.profit == null || r.profit === ""
? "—"
: `<span class="${pnlClass(r.profit)}">${esc(r.profit)}</span>`;
: `<span class="amp-pnl ${pnlClass(r.profit)}">${esc(r.profit)}</span>`;
const trClass = r.is_weekend ? ' class="amp-row-weekend"' : "";
return (
`<tr${trClass}>` +