Files
trading_bot_v4/.github
mindesbunister 90e403e302 fix: Smart Validation Queue respects symbol enabled status (Bug #79)
CRITICAL FIX - Stops Telegram notification spam for disabled symbols

Problem:
- User receiving unwanted notifications for FARTCOIN (enabled=false)
- Three notification types: QUEUED, VALIDATED, ENTERING NOW
- Smart Validation Queue queued quality 50-89 signals WITHOUT checking enabled
- Data collection working correctly, but validation queue also triggered

Root Cause:
- check-risk/route.ts lines 442-455 added signals to queue without enabled check
- Validation queue sends Telegram at multiple stages (queued, validated, entering)
- Execute endpoint checks enabled (line 290) but TOO LATE (after notifications)

The Fix:
- Added enabled status check BEFORE queueing signals
- Check: getActualPositionSizeForSymbol(symbol, config).enabled
- If disabled: Skip queue, save to database silently (data collection only)
- If enabled: Queue normally with notifications (SOL/BTC/ETH production trading)

Files Changed:
- app/api/trading/check-risk/route.ts: Lines 442-470 (added enabled check)
- .github/copilot-instructions.md: Bug #79 documented in Common Pitfalls

Expected Result:
- No more FARTCOIN Telegram notifications
- 1-minute data collection continues silently
- Only enabled symbols (SOL/BTC/ETH) send validation notifications

Severity: 6/10 (annoying but not financially harmful)
Status: Code fixed, awaiting deployment verification
2025-12-15 10:34:18 +01:00
..