总览持仓列展示期权杠杆倍数。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-05 06:47:49 +08:00
parent d7f1e0d2de
commit e18dd41c2d
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -112,13 +112,20 @@
const items = list.slice(0, 8).map(function (p) {
const id = p.inst_id || "";
const sheets = escapeHtml(String(p.sheets != null ? p.sheets : "—"));
const lev = Number(p.contract_leverage != null ? p.contract_leverage : p.leverage);
const levTxt =
Number.isFinite(lev) && lev > 0
? " · 约" + lev.toFixed(1) + "×"
: "";
const fromCond = tagOpen && (!opened || opened === id);
return (
"<li>" +
escapeHtml(id) +
" · " +
sheets +
"张 · " +
"张" +
escapeHtml(levTxt) +
" · " +
fmtPnlHtml(p.pnl_usdt) +
(fromCond ? '<span class="overview-cond-src">条件单</span>' : "") +
"</li>"