Files
trader-ml/requirements.txt
Tika da30ef19ed Initial commit — Trading AI Secure project complet
Architecture Docker (8 services), FastAPI, TimescaleDB, Redis, Streamlit.
Stratégies : scalping, intraday, swing. MLEngine + RegimeDetector (HMM).
BacktestEngine + WalkForwardAnalyzer + Optuna optimizer.
Routes API complètes dont /optimize async.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 17:38:09 +00:00

255 lines
5.8 KiB
Plaintext

# Trading AI Secure - Requirements
# Python 3.11+
# ============================================================================
# CORE DEPENDENCIES
# ============================================================================
# Web Framework
fastapi==0.104.1
uvicorn[standard]==0.24.0
pydantic==2.5.0
pydantic-settings==2.1.0
# Data Processing
numpy==1.26.2
pandas==2.1.3
scipy==1.11.4
# Machine Learning
scikit-learn==1.3.2
xgboost==2.0.3
lightgbm==4.1.0
catboost==1.2.2
hmmlearn==0.3.0 # Hidden Markov Models for regime detection
# Optimization
optuna==3.5.0
hyperopt==0.2.7
ray[tune]==2.9.0
# Time Series & Financial
statsmodels==0.14.1
arch==6.2.0
prophet==1.1.5
# Deep Learning (Optional)
# tensorflow==2.15.0
# torch==2.1.2
# keras-tuner==1.4.6
# Reinforcement Learning (Optional)
# stable-baselines3==2.2.1
# gym==0.26.2
# ============================================================================
# DATA SOURCES
# ============================================================================
# Market Data
yfinance==0.2.32
alpha-vantage==2.3.1
# twelvedata==1.2.11 # Uncomment if using Twelve Data
# IG Markets
# trading-ig==0.0.18 # Uncomment when ready for IG integration
# lightstreamer-client-lib==1.0.3
# ============================================================================
# RISK MANAGEMENT & FINANCE
# ============================================================================
# Quantitative Finance
# quantlib-python==1.31 # Complex installation, optional
riskfolio-lib==5.0.1
pypfopt==1.5.5
# Technical Indicators
ta-lib==0.4.28 # Requires TA-Lib C library
pandas-ta==0.3.14b0
# ============================================================================
# DATABASE & CACHING
# ============================================================================
# SQL
sqlalchemy==2.0.23
psycopg2-binary==2.9.9
alembic==1.13.0
# NoSQL & Cache
redis==5.0.1
pymongo==4.6.0
# Time Series DB
influxdb-client==1.38.0
# ============================================================================
# ASYNC & CONCURRENCY
# ============================================================================
asyncio==3.4.3
aiohttp==3.9.1
aiofiles==23.2.1
httpx==0.25.2
# ============================================================================
# MONITORING & LOGGING
# ============================================================================
# Logging
loguru==0.7.2
python-json-logger==2.0.7
# Metrics
prometheus-client==0.19.0
# APM
# sentry-sdk==1.39.1 # Uncomment for error tracking
# ============================================================================
# UI & VISUALIZATION
# ============================================================================
# Dashboard
streamlit==1.29.0
plotly==5.18.0
matplotlib==3.8.2
seaborn==0.13.0
# ============================================================================
# UTILITIES
# ============================================================================
# Configuration
python-dotenv==1.0.0
pyyaml==6.0.1
toml==0.10.2
# Date/Time
python-dateutil==2.8.2
pytz==2023.3.post1
# HTTP Requests
requests==2.31.0
requests-oauthlib==1.3.1
# Validation
marshmallow==3.20.1
cerberus==1.3.5
# Encryption
cryptography==41.0.7
# ============================================================================
# NOTIFICATIONS
# ============================================================================
# Telegram
python-telegram-bot==20.7
# Email
sendgrid==6.11.0
# SMS (Optional)
# twilio==8.11.0 # Uncomment if using SMS alerts
# ============================================================================
# TESTING
# ============================================================================
# Test Framework
pytest==7.4.3
pytest-asyncio==0.21.1
pytest-cov==4.1.0
pytest-mock==3.12.0
pytest-xdist==3.5.0
# Fixtures
faker==20.1.0
factory-boy==3.3.0
# ============================================================================
# CODE QUALITY
# ============================================================================
# Linting
pylint==3.0.3
flake8==6.1.0
mypy==1.7.1
# Formatting
black==23.12.0
isort==5.13.2
autopep8==2.0.4
# Security
bandit==1.7.5
safety==2.3.5
# ============================================================================
# DOCUMENTATION
# ============================================================================
# API Docs
mkdocs==1.5.3
mkdocs-material==9.5.2
mkdocstrings[python]==0.24.0
# Sphinx (Alternative)
# sphinx==7.2.6
# sphinx-rtd-theme==2.0.0
# ============================================================================
# DEPLOYMENT
# ============================================================================
# WSGI/ASGI
gunicorn==21.2.0
# Process Management
supervisor==4.2.5
# Environment
python-decouple==3.8
# ============================================================================
# DEVELOPMENT TOOLS
# ============================================================================
# Jupyter
jupyter==1.0.0
ipython==8.18.1
notebook==7.0.6
# Debugging
ipdb==0.13.13
pdbpp==0.10.3
# Profiling
memory-profiler==0.61.0
line-profiler==4.1.1
# ============================================================================
# NOTES
# ============================================================================
#
# Installation:
# pip install -r requirements.txt
#
# Optional dependencies:
# - TA-Lib requires C library: https://github.com/mrjbq7/ta-lib
# - QuantLib requires compilation: https://www.quantlib.org/
# - TensorFlow/PyTorch for deep learning (large downloads)
#
# Platform-specific:
# - Windows: Some packages may require Visual C++ Build Tools
# - Linux: May need python3-dev, build-essential
# - macOS: May need Xcode Command Line Tools
#
# Version pinning:
# - All versions pinned for reproducibility
# - Update regularly for security patches
# - Test thoroughly before updating in production
#