- Root cause: Pyth cache empty caused entryPrice=0 in BlockedSignal records - Solution: getCurrentPrice() helper with Pyth → Drift oracle → TradingView fallback - Updated 3 createBlockedSignal callsites (QUALITY, COOLDOWN, HOURLY_LIMIT) - Impact: Enables accurate what-if analysis for threshold optimization - Files: app/api/trading/check-risk/route.ts (added getCurrentPrice, updated 3 calls) - Deployed: Nov 25, 2025 22:55 UTC (container verified running new code) - Testing: Next blocked signal will verify entryPrice != 0 in database
17 KiB
17 KiB