dekun
e8f33c3c52
Fix btc_eth live card option premium USDT conversion.
...
Use option (BTC) index for coin-to-U; never fall back to ETH perp mark. Also add no-server-ops Cursor rule.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 20:48:10 +08:00
dekun
14cbbc300d
Refresh perp mark from public ticker when position metrics are unavailable.
...
Sim/no-keys mode was falling back to entry so 标记 stayed frozen at open price.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 17:34:43 +08:00
dekun
9295dcffe3
Show editable exit on live cards; price perp PnL via close-side book VWAP.
...
Align monitor profit-exit with the same book VWAP so card and auto-exit stay consistent.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 17:29:58 +08:00
dekun
3f98ba1e88
Fix IndentationError in live positions import that broke 当前持仓 API.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 17:13:56 +08:00
dekun
746655acba
Align hedge UI/fees: drop 未启动, premium coin/U, equity incl perp margin, OKX option fees.
...
Option net uses Min(0.03%×coin, 7%×premium) with bid/ask fills (no slip); live PnL colors fixed.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 17:12:10 +08:00
dekun
a83b6794d8
Keep unflat legs on 当前持仓 after plan end.
...
Closed plans with open legs stay visible and closable so residual positions are not orphaned from the UI.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 16:51:33 +08:00
dekun
b7b1a7e7e0
Wide order dialog (calc|form); enrich live cards with lev/bid/margin/time.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 16:45:05 +08:00
dekun
0b3dabbbd9
Split live positions from hedge plans; show option+perp net PnL after fees.
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-14 16:32:13 +08:00