Merge dashboard KPIs into one compact card.

Put status badge and expand on one row; drop funds footnote, win/loss, and separate options float KPI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 14:52:05 +08:00
parent 549d8a015c
commit 89148bb119
4 changed files with 83 additions and 58 deletions
+3
View File
@@ -689,6 +689,9 @@ def build_daily_context(
"float_pnl_u": round(total_float, 4),
"open_position_count": total_open_positions,
"options_open_position_count": total_options_open_positions,
"perpetual_open_position_count": max(
0, int(total_open_positions) - int(total_options_open_positions)
),
"options_float_pnl_u": round(total_options_float, 4) if options_float_known else None,
"total_funding_usdt": round(total_funding, 4) if total_funding is not None else None,
"total_trading_usdt": round(total_trading, 4) if total_trading is not None else None,