f26892f8b2
New paper trading engine (live/paper_trader.py): - Pulls real mainnet prices, orderbooks, funding rates every 2s - Runs all 7 strategies in simulation without placing orders - Simulates fills at market with realistic taker fees (0.05%) and slip (1bp) - Avellaneda-Stoikov: simulates spread capture with 15%/tick fill probability - Tracks virtual positions and PnL per strategy - $5,000 capital ($1,000 per strategy, $1,000 reserve) - Writes to /tmp/ftdt-paper-metrics.json Dashboard updated with 3 tabs: - Live Trading (Testnet) — real orders on testnet - Paper Trading (Mainnet) — simulated fills on real mainnet data - Backtesting — 30-day simulated results Server.py: added /ws/paper WebSocket endpoint, paper_clients set, paper metrics reader and broadcast loop.