docs: mise à jour complète de la documentation (état réel 2026-03-08)
- PROJECT_STATUS.md : réécriture complète — phases 1-4b terminées à 100%, routes API exhaustives, fixes critiques documentés, à-faire priorisé - STRATEGY_GUIDE.md : ajout section ML-Driven Strategy avec features, labels, usage API et paramètres de configuration - AI_FRAMEWORK.md : ajout section ML-Driven + tableau statut implémentation, différenciation HMM/Optuna/MLStrategy - ARCHITECTURE.md : ajout structure réelle du code avec les nouveaux fichiers ml_strategy_model.py, features/, ml_driven/ annotés [NOUVEAU] Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -572,4 +572,75 @@ class StrategyFactory:
|
||||
|
||||
---
|
||||
|
||||
## Structure Réelle du Code (2026-03-08)
|
||||
|
||||
```
|
||||
src/
|
||||
├── api/
|
||||
│ ├── app.py # FastAPI lifespan (init DB + RiskManager)
|
||||
│ └── routers/
|
||||
│ ├── health.py # GET /health, /ready
|
||||
│ └── trading.py # Toutes les routes trading
|
||||
│
|
||||
├── core/
|
||||
│ ├── risk_manager.py # Singleton VaR/CVaR/circuit breakers
|
||||
│ ├── notifications.py # Telegram + Email
|
||||
│ └── strategy_engine.py # Orchestration des stratégies
|
||||
│
|
||||
├── data/
|
||||
│ ├── data_service.py # Agrégation des sources
|
||||
│ ├── yahoo_finance_connector.py
|
||||
│ ├── alpha_vantage_connector.py
|
||||
│ ├── data_validator.py
|
||||
│ └── base_data_source.py
|
||||
│
|
||||
├── db/
|
||||
│ ├── models.py # Trade, OHLCVData, BacktestResult, MLModelMeta
|
||||
│ └── session.py # SQLAlchemy engine, get_db(), init_db()
|
||||
│
|
||||
├── ml/
|
||||
│ ├── ml_engine.py # MLEngine (intégré à StrategyEngine)
|
||||
│ ├── regime_detector.py # HMM — 3 régimes (trend/range/volatile)
|
||||
│ ├── feature_engineering.py # FeatureEngineering (50+ features)
|
||||
│ ├── parameter_optimizer.py # Optuna TPE Sampler + walk-forward
|
||||
│ ├── walk_forward.py # WalkForwardAnalyzer
|
||||
│ ├── position_sizing.py # Kelly Criterion
|
||||
│ ├── service.py # Microservice ML FastAPI (port 8200)
|
||||
│ ├── ml_strategy_model.py # [NOUVEAU] XGBoost/LightGBM sur features TA
|
||||
│ └── features/
|
||||
│ ├── technical_features.py # [NOUVEAU] TechnicalFeatureBuilder (~50 features)
|
||||
│ └── label_generator.py # [NOUVEAU] Labels LONG/SHORT/NEUTRAL
|
||||
│
|
||||
├── strategies/
|
||||
│ ├── base_strategy.py # ABC + Signal + StrategyConfig
|
||||
│ ├── scalping/
|
||||
│ │ └── scalping_strategy.py # BB + RSI + MACD + ATR
|
||||
│ ├── intraday/
|
||||
│ │ └── intraday_strategy.py
|
||||
│ ├── swing/
|
||||
│ │ └── swing_strategy.py
|
||||
│ └── ml_driven/ # [NOUVEAU]
|
||||
│ └── ml_strategy.py # MLDrivenStrategy — XGBoost pilote les signaux
|
||||
│
|
||||
├── backtesting/
|
||||
│ ├── backtest_engine.py
|
||||
│ ├── paper_trading.py
|
||||
│ └── metrics_calculator.py
|
||||
│
|
||||
└── ui/
|
||||
├── dashboard.py # Streamlit — 5 onglets
|
||||
├── api_client.py # Client httpx vers trading-api
|
||||
└── pages/
|
||||
├── live_trading.py
|
||||
├── ml_monitor.py
|
||||
└── analytics.py # Monte Carlo
|
||||
|
||||
models/
|
||||
└── ml_strategy/ # [NOUVEAU] Modèles ML-Driven sauvegardés
|
||||
├── EURUSD_1h_xgboost.joblib
|
||||
└── EURUSD_1h_xgboost_meta.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**Architecture complète et évolutive !**
|
||||
|
||||
Reference in New Issue
Block a user