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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user