A high-fidelity crypto paper-trading simulator. Real-time Binance data, multi-strategy engine (EMA Cross + Supertrend), and a Supabase-backed $1,000 virtual wallet — with zero financial risk.
EMA Cross and Supertrend strategies, ATR-based SL/TP, MACD/volume filters, and multi-token walk-forward backtesting.
→All six Cloudflare Pages Function endpoints — status, history, settings, execute-trade, backtest, and reset — with request and response shapes.
→Position sizing (95% of balance as margin), leveraged PnL formula, and how stop loss and take profit are enforced intra-candle.
→Supabase PostgreSQL tables: wallet (single-row balance), positions (every trade), and bot_settings (JSONB strategy config).
→How the three layers talk to each other.