930dffafbd
Three fixes for live trading: 1. Call ensureExchangeApproval before selling — CLOB buy gives tokens but exchange needs ERC1155 operator approval to place sell orders 2. Wait 2s after buy fill for on-chain settlement before placing sell, retry up to 3x with increasing delay if balance not yet available 3. CL at 10s before market close — cancel unfilled sell orders and let tokens resolve on-chain naturally Also adds simulation stats tracking: - Starting balance $50, tracks cumulative P&L - Win/Loss/Skip counters with win rate % - Trade history displayed in TUI and bot status Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>