- Infra: Freqtrade (futures dry-run) + Redis + dashboard + Docker Compose - Couche IA: ai_analyzer (Claude via abonnement, MCP TradingView, backfill biais) - Stratégies: SampleStrategy, AiBiasStrategy, IchimokuLS (long/short, validée train/test + données vierges + walk-forward), MTFIchimoku, variantes hyperopt - Arbitrage CEX (dry-run), backtesting, walk-forward, volatility targeting - IchimokuLS en dry-run live (config_live.json) Claude-Session: https://claude.ai/code/session_01VHETcFacdnDhQzthLpdYFR
24 lines
766 B
Docker
24 lines
766 B
Docker
# Service ai-analyzer : Python + CLI Claude (Node), authentifié par l'abonnement.
|
|
FROM node:20-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends python3 python3-pip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# CLI Claude Code (mode headless via `claude -p`).
|
|
RUN npm install -g @anthropic-ai/claude-code
|
|
|
|
WORKDIR /app
|
|
COPY ai_analyzer/requirements.txt .
|
|
RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
|
|
|
|
COPY ai_analyzer/ /app/
|
|
COPY .mcp.json /app/.mcp.json
|
|
|
|
ENV REDIS_URL=redis://redis:6379/0 \
|
|
ANALYZER_MODEL=claude-sonnet-4-6
|
|
|
|
# Auth : CLAUDE_CODE_OAUTH_TOKEN fourni par l'environnement (cf. .env).
|
|
# NE PAS définir ANTHROPIC_API_KEY (basculerait sur la facturation au token).
|
|
CMD ["python3", "analyzer.py"]
|