web: spread highlight threshold 0.1% → 0.2%
This commit is contained in:
+2
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user