Services¶
TradAI microservices following the 3-layer pattern.
Overview¶
| Service | Port | Purpose |
|---|---|---|
| Backend | 8000 | Main API gateway, orchestration, backtesting |
| Data Collection | 8002 | Market data fetching and storage |
| Strategy Service | 8003 | Strategy execution, MLflow integration |
| MLflow | 5000 | ML experiment tracking and model registry |
Architecture¶
All services follow the 3-layer architecture:
services/*/
├── src/*/
│ ├── api/ # FastAPI routers, endpoints
│ ├── core/ # Business logic, entities
│ └── infrastructure/ # External adapters, repositories
├── tests/
└── Dockerfile
Running Services¶
# Start all services with Docker
just up
# Run individual service locally
just run-api # Backend API on port 8000
# Stop services
just down