Files
trading_bot_v4/docker-compose.telegram-bot.yml
mindesbunister 6cec2e8e71 critical: Fix Smart Entry Validation Queue wrong price display
- Bug: Validation queue used TradingView symbol format (SOLUSDT) to lookup market data cache
- Cache uses normalized Drift format (SOL-PERP)
- Result: Cache lookup failed, wrong/stale price shown in Telegram abandonment notifications
- Real incident: Signal at $126.00 showed $98.18 abandonment price (-22.08% impossible drop)
- Fix: Added normalizeTradingViewSymbol() call in check-risk endpoint before passing to validation queue
- Files changed: app/api/trading/check-risk/route.ts (import + symbol normalization)
- Impact: Validation queue now correctly retrieves current price from market data cache
- Deployed: Dec 1, 2025
2025-12-01 23:45:21 +01:00

28 lines
635 B
YAML

version: '3.3'
services:
telegram-trade-bot:
build:
context: .
dockerfile: Dockerfile.telegram-bot
container_name: telegram-trade-bot
restart: unless-stopped
env_file:
- .env.telegram-bot
dns:
- 9.9.9.9
- 8.8.8.8
- 8.8.4.4
environment:
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- N8N_WEBHOOK_URL=${N8N_WEBHOOK_URL}
- TELEGRAM_CHAT_ID=579304651
- TRADING_BOT_URL=${TRADING_BOT_URL:-http://trading-bot-v4:3000}
- API_SECRET_KEY=${API_SECRET_KEY}
networks:
- traderv4_trading-net
networks:
traderv4_trading-net:
external: true