Fix Binance OHLCV pagination and fallbacks; expose real funding and OI with a public Bybit fallback plus full Fear & Greed history; add daily OI, authenticated NewsData, and public-RPC whale archives; and ship the Data Lab and truthful help coverage documentation.
Upload backend/routers/pages_compat_api.py with huggingface_hub
fix: Critical provider fixes + user-friendly status page
Cursor Agent
3ae846b
🔧 API Provider Improvements:
1. CoinDesk API - FIXED
- Use public BPI endpoint (most reliable, no auth needed)
- Remove complex fallback logic
- Proper error handling with connection retry
2. Tronscan API - FIXED
- Add follow_redirects=True for 301 handling
- Now properly follows redirects to working endpoints
- Third endpoint works: /api/token/price?token=trx
3. BSCScan API - IMPROVED
- Change ERROR to INFO for API key issues
- Non-critical warnings (other providers used automatically)
- Graceful degradation messaging
🎨 User Interface Improvements:
1. New System Status Page
- Beautiful user-friendly interface
- Real-time provider health monitoring
- No scary error messages for users
- Auto-refresh every 30 seconds
- Shows operational status clearly
2. Updated .env.example
- Include valid CoinDesk API key
- Clear documentation for all providers
- Production recommendations
- Free tier limits explained
✅ Results:
- CoinDe…
fix: Critical HuggingFace Space fixes - API resilience & configuration
Cursor Agent
2510638
🔧 API Provider Fixes:
- CoinDesk: Add fallback endpoints + DNS error handling
- Tronscan: Update API endpoints + multiple fallback URLs
- BSCScan: Better API key error handling + graceful degradation
✨ Improvements:
- All providers now use multiple fallback endpoints
- Connection errors no longer crash the Space
- Better logging (warnings vs errors)
- Graceful degradation when providers are unavailable
📚 Documentation:
- Add proper HuggingFace Space README.md (valid YAML)
- Include Space configuration (emoji, sdk, app_port)
- Complete API documentation links
- Architecture diagrams
✅ Result:
- Space runs smoothly even when some APIs fail
- Provider Manager handles all failures gracefully
- Users see working features instead of crashes
- Monitoring shows which providers are down
feat: Implement intelligent load balancing and monitoring
* feat: Enhance system status with detailed provider metrics and smart routing
Co-authored-by: inybnvck553 <inybnvck553@outlook.com>
* feat: Multi-source routing + CPU transformers + enhanced monitoring
PART 1 - CPU-Only Transformers:
- Add torch==2.1.0+cpu for faster HuggingFace Space builds
- Add transformers==4.35.0 for model support
- Remove GPU dependencies to reduce Docker image size
- Expected: 50% faster builds (4-5min vs 8-10min)
PART 2 - Enhanced Status Panel:
- Expand drawer width to 400px for more information
- Add 6 detailed sections (providers, AI, infrastructure, resources, errors, performance)
- Implement collapsible sections with smooth animations
- Add refresh button for manual updates
- Show real-time provider metrics with emoji indicators
- Display rate limit status and error tracking
PART 3 - Smart Multi-Source Routing (CRITICAL):
- NEW: smart_multi_source_router.py enforces multi-source usage
- NEVER uses only CoinGecko - distributes across 5+ providers
- Pri…
fix: Make system_status_api resilient to missing psutil
Cursor Agent
85f07c7
- Add graceful fallback when psutil not available
- System status API won't crash if psutil missing
- Resources will show 0 values instead of failing
- Improves compatibility with different environments
feat: Add production-ready System Status Modal with real-time monitoring
Cursor Agent
193e55b
Replace persistent system monitor banner with modal-based approach:
Backend Changes:
- Add /api/system/status endpoint with comprehensive status data
- Aggregate services, endpoints, coins, and system resources
- Real-time health checks for CoinGecko, Binance, AI models
- Register system_status_router in hf_unified_server.py
Frontend Changes:
- Create SystemStatusModal component with safe polling mechanism
- Polling pauses when modal is closed, resumes on open
- Add data-driven animations (only on actual data changes)
- Integrate modal trigger button in dashboard header
- Remove old persistent system-monitor section
Features:
- Overall health status (Online/Degraded/Partial/Offline)
- Service status with response times
- API endpoint health with success rates
- Cryptocurrency feed status with prices
- System resources (CPU, Memory, Uptime, Load)
- Graceful error handling and degradation
- Matches Ocean Teal theme with iOS-style icons
- Fully responsive mobile design
Safety:
- No br…