Use dual indices for watch/preview; perp entry uses ETH mark; expiry/close convert coin PnL via option index; align legacy long→Call; omit combo U when index missing.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Also enable WAL and busy_timeout on get_db so concurrent sim writes wait instead of failing immediately.
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Manual market_order was validated as watch (missing watch_entry=0). Collapse order calc into details, remove page head card, show mode name in nav.
Co-authored-by: Cursor <cursoragent@cursor.com>