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
This commit is contained in:
mindesbunister
2025-12-01 23:45:21 +01:00
parent 4fb301328d
commit 6cec2e8e71
6 changed files with 120 additions and 22 deletions

View File

@@ -10,6 +10,7 @@ services:
env_file:
- .env.telegram-bot
dns:
- 9.9.9.9
- 8.8.8.8
- 8.8.4.4
environment: