mindesbunister
7ff78ee0bd
feat: Hybrid RPC fallback system (Alchemy → Helius)
- Automatic fallback after 2 consecutive rate limits
- Primary: Alchemy (300M CU/month, stable for normal ops)
- Fallback: Helius (10 req/sec, backup for startup bursts)
- Reduced startup validation: 6h window, 5 trades (was 24h, 20 trades)
- Multi-position safety check (prevents order cancellation conflicts)
- Rate limit-aware retry logic with exponential backoff
Implementation:
- lib/drift/client.ts: Added fallbackConnection, switchToFallbackRpc()
- .env: SOLANA_FALLBACK_RPC_URL configuration
- lib/startup/init-position-manager.ts: Reduced validation scope
- lib/trading/position-manager.ts: Multi-position order protection
Tested: System switched to fallback on startup, Position Manager active
Result: 1 active trade being monitored after automatic RPC switch
2025-11-14 15:28:07 +01:00
..
2025-10-27 12:59:25 +01:00
2025-10-27 12:59:25 +01:00
2025-10-27 12:59:25 +01:00
2025-11-09 17:59:50 +01:00
2025-11-10 15:36:51 +01:00
2025-11-10 11:22:52 +01:00
2025-11-06 12:18:31 +01:00
2025-11-06 12:18:31 +01:00
2025-11-14 11:09:37 +01:00
2025-11-05 10:00:39 +01:00
2025-11-10 15:36:51 +01:00
2025-11-07 14:55:13 +01:00
2025-11-10 15:36:51 +01:00
2025-11-14 15:28:07 +01:00
2025-11-03 10:28:48 +01:00
2025-11-10 15:36:51 +01:00
2025-11-09 17:59:50 +01:00
2025-11-06 12:18:31 +01:00
2025-11-10 17:05:32 +01:00
2025-11-14 11:39:03 +01:00
2025-10-29 21:11:23 +01:00
2025-11-10 11:22:52 +01:00
2025-11-10 11:22:52 +01:00