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

This commit is contained in:
Marc Blatter 2026-07-06 22:10:01 +02:00
parent a4b2943949
commit 7a99a799f3
2 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ async def root():
trades_count = state.get('active_positions', 0) # ← FIXED: Use real count!
prices = state.get('prices', {})
# P&L from state
pnl_usdt = state.get("pnl_usdt", 0)
pnl_pct = state.get("pnl_pct", 0)
pnl_status = state.get("pnl_status", "⚪ BREAK")
pnl_color = state.get("pnl_color", "neutral")
html = f'''<!DOCTYPE html>
<html>
<head>