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:
@@ -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}>` +
|
||||
|
||||
Reference in New Issue
Block a user