This guide provides multiple reliable ways to start and manage your SupertradeX trading platform.
The easiest and most reliable way to start SupertradeX:
# Start everything with auto-restart
python start_supertradex.pyThis starts both the trading system and web dashboard with automatic monitoring and restart capabilities.
Starts both main trading system and web dashboard with auto-restart:
python start_supertradex.py- ✅ Auto-restart if services crash
- ✅ Health monitoring
- ✅ Process management
- ✅ Centralized logging
- 📊 Dashboard: http://127.0.0.1:8000
Start only specific components:
Main Trading System Only:
python start_supertradex.py --main-onlyWeb Dashboard Only:
python start_supertradex.py --web-onlyStart in background (daemon mode):
python start_supertradex.py --background- Runs in background without terminal
- Check status:
python start_supertradex.py --status
For development/debugging:
Service Manager:
python supertradex_manager.pyMain System:
python main.pyWeb Dashboard:
python run_web.pyBash Script:
./run_supertradex.shpython start_supertradex.py --statuspython start_supertradex.py --killpython start_supertradex.py --force-killpython start_supertradex.py --install- Starts automatically on login
- Runs in background
- Managed by macOS
python start_supertradex.py --install- Starts automatically on boot
- Managed by systemd
- Check with:
sudo systemctl status supertradex
Once running, access the dashboard at:
- URL: http://127.0.0.1:8000
- Features:
- Real-time trading data
- System status monitoring
- Trade execution controls
- Performance metrics
-
Check virtual environment:
source .venv/bin/activate pip install -r requirements.txt -
Kill existing processes:
python start_supertradex.py --kill
-
Check logs:
tail -f supertradex_manager.log tail -f main.log tail -f web.log
# Find and kill process using port 8000
lsof -t -i:8000 | xargs kill -9# Make scripts executable
chmod +x *.py *.shstart_supertradex.py- Main launcher (use this)supertradex_manager.py- Service managerrun_supertradex.sh- Bash launchermain.py- Trading systemrun_web.py- Web dashboard
The service manager automatically:
- ✅ Restarts crashed services
- ✅ Monitors service health
- ✅ Logs all activities
- ✅ Handles graceful shutdowns
- ✅ Manages process dependencies
Ctrl+C - Graceful shutdown (recommended)
Force stop everything:
pkill -f "supertradex"
pkill -f "main.py"
pkill -f "run_web.py"For 24/7 trading operations:
-
Install as system service:
python start_supertradex.py --install
-
Monitor logs:
tail -f supertradex_manager.log
-
Set up external monitoring (optional):
- Monitor http://127.0.0.1:8000/api/status
- Set up alerts for service failures
- Always use the service manager for production
- Monitor logs regularly
- Test restarts periodically
- Keep backups of configuration files
- Monitor system resources (CPU, memory, disk)
| Command | Purpose |
|---|---|
python start_supertradex.py |
Start everything (recommended) |
python start_supertradex.py --status |
Check what's running |
python start_supertradex.py --kill |
Stop everything |
python start_supertradex.py --background |
Start in background |
python start_supertradex.py --install |
Install as system service |
Dashboard: http://127.0.0.1:8000
For support, check the logs in the project directory or contact the development team.