New strategies:
- Cross-Sectional Momentum: long top-N, short bottom-N across HL universe
- Spot-Perp Basis Arbitrage: delta-neutral spot vs perp price gap trading
- Regime-Switching Ensemble: dynamically allocates strategies by market regime
- Portfolio Construction: risk parity, vol targeting, correlation penalty
Infrastructure:
- DuckDBDataProvider: real tick/candle data for backtests (replaces synthetic)
- Walk-Forward Validation: systematic IS/OOS across all 12 strategies
- 3 Jupyter research notebooks (EDA, strategy research, portfolio)
Pipeline integration:
- deploy.py registry, sweep_runner, vbt_runner all updated
- fee_tiers support for new strategies
- All modules syntax-validated and import-tested
- live/paper_trader.py: replaced random 5% fill probability in simulate_avellaneda()
with QueueAwareFillModel — fills only when aggressor volume exceeds depth ahead,
regime-adaptive quote placement (tight in LOW_VOL, wide in HIGH_VOL). Integrated
WQI Predictor and Funding Rate Arb as new strategies with signal generation.
Dashboard metrics now include WQI summaries, funding arb status, and fill model
throughput stats (fill rate, fills vs skips). 14 strategies total.
- scripts/kill_switch.py: emergency kill switch — flattens all positions, cancels
all open orders, verifies account is flat. Supports --dry-run, --mainnet, retry
logic, L1 action signing. Reads private key from HL_PRIVATE_KEY env or ~/.hl/key.
- infrastructure/systemd/: three service unit files for production deployment:
ftdt-collector (data collection), ftdt-paper (trading node v2), ftdt-dashboard
(FastAPI backend). Includes memory/cpu limits, auto-restart, log rotation.
321 tests passing.