fix复盘真盈亏改为期权币盈亏×平仓价,不再绑卖回与初始权利金差。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -187,10 +187,7 @@ def repair(conn: sqlite3.Connection, *, apply: bool) -> list[dict[str, Any]]:
|
||||
initial_u = round(float(paid) * float(use_open), 4)
|
||||
new_u = true_pnl_usdt_premium_move(
|
||||
coin_pnl=coin,
|
||||
premium_paid=paid,
|
||||
sell_back_px=close_px or old_close,
|
||||
initial_premium_usdt=initial_u,
|
||||
open_index_px=use_open,
|
||||
)
|
||||
item = {
|
||||
"id": tid,
|
||||
|
||||
Reference in New Issue
Block a user