Bot auto-update: src/__pycache__/web_dashboard.cpython-310.pyc,src/web_dashboard.py
This commit is contained in:
parent
a4b2943949
commit
7a99a799f3
Binary file not shown.
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue