Worker Service
Service Info
Service TypeRender Web Service
Start Command
npm run workerEntry Point
src/worker/index.tsRuntimeNode.js (tsx)
Required Environment Variables
NEXT_PUBLIC_SUPABASE_URLSupabase project URLSUPABASE_SERVICE_ROLE_KEYService role key (bypasses RLS)ENCRYPTION_KEY32-byte hex key for AES-256-GCMDEEPSEEK_API_KEYDeepSeek API key for AI signal parserWhat the Worker Does
- Connects to Discord Gateway via WebSocket using your user token
- Listens for messages in configured channels
- Routes each message through the signal parser (regex / AI)
- If the signal matches and auto-execute is enabled, places the trade on Bitget
- Records every signal and trade event in the database
- Takes a daily balance snapshot at midnight UTC