This guide helps you diagnose and fix common issues with TraderMagic.
Symptoms:
- Trade signals are being generated but no trades show up in the dashboard
- You see "No recent trades" in the trade info section
Possible Causes & Solutions:
-
Trading is disabled
- Look for the "Trading Disabled" badge in the footer
- Click the "Start Trading" button to enable trading
-
Debug mode is affecting behavior
- Check if
ALPACA_DEBUG_MODE=truein your.envfile - Set to
falseto allow real API calls
- Check if
-
Fixed amount is too low
- If using fixed amount mode, ensure the amount is sufficient
- Minimum trade amount is often $1 or higher
-
API credentials issue
- Check your Alpaca API keys in the
.envfile - Verify account status on Alpaca's dashboard
- Check your Alpaca API keys in the
Diagnostic Steps:
- Visit the debug dashboard at
http://localhost:9753/debug - Check the current trading settings displayed
- Try executing a manual test trade to verify functionality
Symptoms:
- Dashboard shows stale data
- Log shows timeout errors or connection issues
Possible Causes & Solutions:
-
TAAPI.io rate limits
- Increase the
POLL_INTERVALin your.envfile - Consider upgrading your TAAPI.io subscription tier
- Increase the
-
Network connectivity issues
- Check your internet connection
- Verify that API services are reachable from your network
-
Resource constraints
- Ensure your system has sufficient RAM and CPU
- Consider scaling down to fewer symbols or simpler models
Symptoms:
- Logs show 429 errors from TAAPI.io
- No price updates for extended periods
Solutions:
-
Increase poll interval in
.env:POLL_INTERVAL=300 # 5 minutes -
Reduce number of symbols monitored:
SYMBOLS=BTC/USD # Just one symbol -
Verify you're using supported symbols on your tier
Symptoms:
- Web UI not updating
- Errors containing "Redis connection"
Solutions:
-
Check the Redis logs:
docker compose logs redis
-
Verify Redis is running:
docker compose ps redis
-
Try restarting just the Redis container:
docker compose restart redis
Symptoms:
- No AI decisions being made
- Errors mentioning model not found
Solutions:
-
Check if the model is downloaded:
docker compose exec ollama ollama list -
Check the Ollama logs:
docker compose logs ollama
-
Try a different model:
OLLAMA_MODEL=llama3:latest # Change in .env file -
Restart the Ollama service:
docker compose restart ollama
When troubleshooting, check the logs for specific services:
# Check all logs together
docker compose logs -f
# Check specific service logs
docker compose logs -f data_retrieval
docker compose logs -f ai_decision
docker compose logs -f trade_execution
docker compose logs -f frontendIf you need a complete reset:
-
Stop all services:
docker compose down
-
Remove Redis volumes:
docker volume rm tradermagic_redis_data
-
Start fresh:
docker compose up -d
If you've tried the troubleshooting steps above and still need help:
- Check the GitHub issues: https://github.com/rawveg/trader-magic/issues
- Submit a new issue with:
- Detailed description of your problem
- Relevant logs (with sensitive information removed)
- Your configuration settings (without API keys)
- Steps you've already taken to troubleshoot