theAdityapandey/crypto-algo-trader-ai-brain
0
Algo-Trader AI Brain — Aladdin Lite
FastAPI-based Q-Learning microservice that detects market regimes and dynamically selects trading strategies.
Architecture
This service is Phase 2 of the Aladdin Lite system — a hybrid AI strategy rotator for the Algo-Trader application.
Algo-Trader (Fly.io)
→ POST /predict with VIX, ADX, ATR% every morning
← Gets back { v5: bool, orb: bool } strategy weights
Algo-Trader (Fly.io)
→ POST /feedback with actual daily PnL at market close
← Q-table updates based on reward signal4 Market Regimes
Endpoints
GET /health— Service health checkGET /regime— Current market regimePOST /predict— Get strategy recommendation for todayPOST /feedback— Report actual PnL to update Q-tableGET /q-table— View current Q-table state
