中控快照增加买一/流动性字段,便于总览标黄不足仓位。

含买一价、张数、未覆盖张数与残档标记。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-01 12:39:13 +08:00
parent 193c02eda8
commit c1f783df9b
2 changed files with 41 additions and 3 deletions
+1
View File
@@ -83,6 +83,7 @@ def build_options_hub_snapshot(cfg: dict[str, Any]) -> dict[str, Any]:
for p in positions:
# 合计一律折 U:币本位 × 指数,避免 BTC/ETH 币数量与 USDC 混加
pnl = display_pnl_usdt_from_option_row(p)
p["display_pnl_usdt"] = pnl
if pnl is None:
continue
has_upl = True