Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py

This commit is contained in:
Marc Blatter 2026-07-04 14:28:27 +02:00
parent e67077c093
commit 2b0624a04b
2 changed files with 3 additions and 3 deletions

View File

@ -583,8 +583,8 @@ html_content = """
<div class="trade-pair">${pair}</div>
<div class="trade-info">
<div><strong>Qty:</strong> ${trade.qty?.toFixed(8)}</div>
<div><strong>Price:</strong> ${formatCurrency(trade.entry_price)}</div>
<div><strong>Entry:</strong> ${new Date(trade.entry_time).toLocaleTimeString('de-CH')}</div>
<div><strong>Price:</strong> ${formatCurrency(trade.buy_price || trade.entry_price)}</div>
<div><strong>Entry:</strong> ${new Date(trade.buy_time || trade.entry_time).toLocaleTimeString('de-CH')}</div>
</div>
</div>
`)
@ -599,7 +599,7 @@ html_content = """
<div class="trade-card closed fade-in">
<div class="trade-pair">${trade.pair}</div>
<div class="trade-info">
<div><strong>Entry:</strong> ${formatCurrency(trade.entry_price)}</div>
<div><strong>Entry:</strong> ${formatCurrency(trade.buy_price || trade.entry_price)}</div>
<div><strong>Exit:</strong> ${formatCurrency(trade.exit_price)}</div>
<div><strong>Profit:</strong> <span class="${trade.profit_usd >= 0 ? 'positive' : 'negative'}">${formatCurrency(trade.profit_usd)} (${trade.profit_pct >= 0 ? '+' : ''}${trade.profit_pct.toFixed(2)}%)</span></div>
<div><strong>Hold:</strong> ${trade.hold_time_min?.toFixed(0)} min</div>