Use exchange fees, UPL, funding for LIVE PnL; USDC 1:1 to USDT.

Option open P&L stays local (option net); exit target ignores estimated close fees.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-26 21:49:20 +08:00
parent b7e055e37b
commit ca66c494e7
12 changed files with 685 additions and 25 deletions
+3
View File
@@ -157,8 +157,11 @@ export type PlanState = {
expiry_ms?: number | null;
perp_upl?: number;
option_upl?: number;
fees_paid?: number;
funding_usdt?: number;
est_close_fees?: number;
net_pnl?: number;
pnl_source?: string;
index_px?: number | null;
entry_index_px?: number;
move_points?: number;