web: spread highlight threshold 0.1% → 0.2%

This commit is contained in:
jackyu66git
2026-05-04 00:07:32 +08:00
parent b8c73852be
commit 004ff50325
+2 -2
View File
@@ -139,7 +139,7 @@ eventHandlers.prices = (prices) => {
// P3-2: Add spread column
const spread = row['bg_hl_spread'];
const spreadCls = spread > 0.1 ? 'text-green' : spread < -0.1 ? 'text-red' : '';
const spreadCls = spread > 0.2 ? 'text-green' : spread < -0.2 ? 'text-red' : '';
const spreadStr = spread != null ? spread.toFixed(4) + '%' : '-';
html += `<tr><td><strong>${coin}</strong></td>${cells.join('')}<td class="${spreadCls}">${spreadStr}</td></tr>`;
@@ -158,7 +158,7 @@ eventHandlers.arb = (opps) => {
}
const html = opps.slice(0, 10).map(opp => {
const cls = opp.net_profit > 0.1 ? 'text-green' : opp.net_profit > 0.05 ? 'text-yellow' : '';
const cls = opp.net_profit > 0.10 ? 'text-green' : opp.net_profit > 0.05 ? 'text-yellow' : '';
return `<tr>
<td>${opp.coin}</td>
<td>${opp.direction}</td>