feat: show force-close badge and countdown when FORCE_CLOSE is enabled
Add shared lib/UI for midnight force-close indicator on instance and hub pages, and document Gate intraday 0-point exit alignment. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1784,6 +1784,13 @@ _ORDER_PRICE_MERGE_KEYS = (
|
||||
"time_close_label",
|
||||
"time_close_countdown",
|
||||
"time_close_remaining_sec",
|
||||
"force_close_enabled",
|
||||
"force_close_bj_hour",
|
||||
"force_close_at_ms",
|
||||
"force_close_label",
|
||||
"force_close_countdown",
|
||||
"force_close_remaining_sec",
|
||||
"force_close_active",
|
||||
)
|
||||
|
||||
|
||||
@@ -2141,6 +2148,7 @@ async def _assemble_board_row(
|
||||
"available_trading_usdt": account.get("available_trading_usdt") if acct_ok else None,
|
||||
"account_ok": acct_ok,
|
||||
"day_stats": _day_stats_from_trades_body(trades_today),
|
||||
"force_close": snap.get("force_close") if isinstance(snap, dict) else None,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user