fix复盘真盈亏改为期权币盈亏×平仓价,不再绑卖回与初始权利金差。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-13 12:39:15 +08:00
parent 839baea375
commit fc0d76d174
11 changed files with 98 additions and 211 deletions
+1 -4
View File
@@ -607,10 +607,7 @@ def sync_options_from_local_trades(
conn=conn,
bridge_id=r["bridge_id"],
)
if pnl_src == "pending_sell":
status_label = "待卖回"
pnl_u = None
elif pnl_u is not None and pnl_src not in ("none", "pending_sell"):
if pnl_u is not None and pnl_src not in ("none", "pending_sell"):
try:
# 卖回 VWAP 写入 close;开仓价/初始权利金仅缺省时补
heal_initial = stored_initial