feat: restructure OKX options UI with header funds, settings card, and dual-column layout

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 09:36:00 +08:00
parent 38f6bc240e
commit 090b9c6215
15 changed files with 619 additions and 225 deletions
@@ -1061,6 +1061,11 @@ function refreshAccountSnapshot(){
const el = document.getElementById("current-capital");
if(el) el.innerText = `${Number(data.current_capital).toFixed(2)}U`;
}
if (typeof data.options_trading_usdc !== "undefined") {
const el = document.getElementById("options-trading-usdc");
if (el) el.innerText = (data.options_trading_usdc === null || data.options_trading_usdc === undefined)
? "—" : `${Number(data.options_trading_usdc).toFixed(2)} USDC`;
}
if (typeof data.unrealized_pnl !== "undefined") {
paintRealtimePnl(data.unrealized_pnl);
}