diff --git a/src/__pycache__/web_dashboard.cpython-310.pyc b/src/__pycache__/web_dashboard.cpython-310.pyc index df9af94..0b2ad02 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 0308ce6..354b3bd 100644 --- a/src/web_dashboard.py +++ b/src/web_dashboard.py @@ -583,8 +583,8 @@ html_content = """
${pair}
Qty: ${trade.qty?.toFixed(8)}
-
Price: ${formatCurrency(trade.entry_price)}
-
Entry: ${new Date(trade.entry_time).toLocaleTimeString('de-CH')}
+
Price: ${formatCurrency(trade.buy_price || trade.entry_price)}
+
Entry: ${new Date(trade.buy_time || trade.entry_time).toLocaleTimeString('de-CH')}
`) @@ -599,7 +599,7 @@ html_content = """
${trade.pair}
-
Entry: ${formatCurrency(trade.entry_price)}
+
Entry: ${formatCurrency(trade.buy_price || trade.entry_price)}
Exit: ${formatCurrency(trade.exit_price)}
Profit: ${formatCurrency(trade.profit_usd)} (${trade.profit_pct >= 0 ? '+' : ''}${trade.profit_pct.toFixed(2)}%)
Hold: ${trade.hold_time_min?.toFixed(0)} min