fix复盘真盈亏改为期权币盈亏×平仓价,不再绑卖回与初始权利金差。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user