diff --git a/src/__pycache__/web_dashboard.cpython-310.pyc b/src/__pycache__/web_dashboard.cpython-310.pyc index ab1d4e6..43f7cec 100644 Binary files a/src/__pycache__/web_dashboard.cpython-310.pyc and b/src/__pycache__/web_dashboard.cpython-310.pyc differ diff --git a/src/web_dashboard.py b/src/web_dashboard.py index e755b88..2f53c87 100644 --- a/src/web_dashboard.py +++ b/src/web_dashboard.py @@ -256,7 +256,7 @@ html_content = """ font-weight: 600; } - .metrics-grid { grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; } @@ -387,11 +387,11 @@ html_content = """ } @media (max-width: 1200px) { - .metrics-grid { grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(4, 1fr); } } @media (max-width: 768px) { - .metrics-grid { grid-template-columns: repeat(4, 1fr); + grid-template-columns: repeat(4, 1fr); } } @@ -505,23 +505,23 @@ html_content = """ // Update key metrics - PRIMARY, USD secondary const usdt = data.balance.USDT || 0; const usdt_chf = usdt * 0.84; - document.getElementById('usdt').textContent = `$${usdt.toFixed(2)}${usdt_chf.toFixed(2)}`; + document.getElementById('usdt').textContent = ; const portfolio_usd = data.portfolio_value_usd || 0; const portfolio_chf = data.portfolio_value_chf || (portfolio_usd * 0.84); - document.getElementById('portfolio').textContent = `$${portfolio_usd.toFixed(2)}${portfolio_chf.toFixed(2)}`; + document.getElementById('portfolio').textContent = ; // Update P&L with color - primary const dailyPnl = data.daily_pnl || 0; const dailyPnl_chf = dailyPnl * 0.84; const dailyPnlEl = document.getElementById('daily-pnl'); - dailyPnlEl.textContent = `$${dailyPnl >= 0 ? '+' : ''}${dailyPnl.toFixed(2)}${dailyPnl_chf >= 0 ? '+' : ''}${dailyPnl_chf.toFixed(2)}`; + dailyPnlEl.textContent = ; dailyPnlEl.className = 'card-value ' + (dailyPnl >= 0 ? 'positive' : 'negative'); const totalPnl = data.total_pnl || 0; const totalPnl_chf = totalPnl * 0.84; const totalPnlEl = document.getElementById('total-pnl'); - totalPnlEl.textContent = `$${totalPnl >= 0 ? '+' : ''}${totalPnl.toFixed(2)}${totalPnl_chf >= 0 ? '+' : ''}${totalPnl_chf.toFixed(2)}`; + totalPnlEl.textContent = ; totalPnlEl.className = 'card-value ' + (totalPnl >= 0 ? 'positive' : 'negative'); // Update performance