cd ~/code/openclaw/projects/PolyTrackerBot
./START_EVERYTHING.shThis starts:
- ✅ Bot (DEMO mode, real orders on demo account)
- ✅ API Server (port 8000, mode control)
- ✅ Dashboard (port 3000, UI monitoring)
- Location:
polytracker/main.py - Mode: DEMO (can be changed via API)
- Monitoring: Every 5 minutes for whale signals
- Logging:
logs/bot.log+logs/polytracker.log
- Location:
polytracker/api/server.py - Port: 8000
- Purpose: Mode control, configuration
- Logging:
logs/api.log
- Location:
dashboard/(Vite dev server) - Port: 3000
- Purpose: Real-time monitoring & mode switching
- Logging:
logs/dashboard.log
| Service | URL | Purpose |
|---|---|---|
| Dashboard | http://localhost:3000 | Monitor signals, switch modes |
| API Info | http://localhost:8000/api/mode/info | Get mode info |
| API Current | http://localhost:8000/api/mode/current | Check current mode |
- Open http://localhost:3000
- Find "Execution Mode" panel (right side)
- Click button for desired mode:
- Dry Run — Logging only, no orders
- Demo — Real orders on demo account
- Live — Real money (requires confirmation)
- See success/error message
- Restart bot to apply new mode
- Bot will use new mode immediately after restart
# Get current mode
curl http://localhost:8000/api/mode/current
# Switch to DEMO
curl -X POST http://localhost:8000/api/mode/set \
-H "Content-Type: application/json" \
-d '{"mode": "DEMO"}'
# Verify change
curl http://localhost:8000/api/mode/currenttail -f logs/polytracker.logtail -f logs/bot.logtail -f logs/api.logtail -f logs/polytracker.log | grep -i signaltail -f logs/polytracker.log | grep -i modeAPI server hasn't started. Check:
lsof -Pi :8000
# Should show Python process listening on 8000
# If not running, start it:
source venv/bin/activate
python -m polytracker.api.serverPort 3000 and 8000 must both be running. Start with:
./START_EVERYTHING.sh# Check if Vite server is running
lsof -Pi :3000
# Check logs
tail logs/dashboard.log
# Reinstall deps if needed
cd dashboard && npm install && cd ..
npm run dev# Check if process exists
pgrep -f "python -m polytracker"
# Check logs
tail logs/bot.log
# Restart
source venv/bin/activate
python -m polytracker.mainAll logs stored in logs/:
polytracker.log— Main bot activitybot.log— Bot outputapi.log— API server outputdashboard.log— Dashboard build output
From the START_EVERYTHING.sh output, get the PIDs and kill them:
kill $BOT_PID $API_PID $DASHBOARD_PIDOr just Ctrl+C the running script.
If you prefer to start services individually:
source venv/bin/activate
python -m polytracker.mainsource venv/bin/activate
python -m polytracker.api.servercd dashboard
npm run devStatus: Ready to go!
Next: Watch for whale signals in logs and test mode switching from dashboard.