CRITICAL: 1-minute ATR data feed not working - Telegram bot timing out
Root cause:
- TradingView alert sends action: 'market_data_1min'
- Endpoint checked for exact match: 'market_data'
- Result: 400 Bad Request, no data cached
The fix:
- Accept both 'market_data' and 'market_data_1min'
- Prevents rejection of 1-minute TradingView alerts
- Enables fresh ATR data for manual Telegram trades
User symptom: 'long sol' → timeout → fallback to preset ATR 0.43
After fix: 'long sol' → waits for fresh 1min data → uses real ATR
Files changed:
- app/api/trading/market-data/route.ts line 64-71