`n
Everything You Need to Get Started
Follow these steps to get your ATMA Trading Bot up and running in under 30 minutes!
Sign up for a Tradier brokerage account to execute trades.
→ See detailed instructionsGet trade alerts sent directly to your Discord server.
→ See detailed instructionsObtain API keys for OpenAI (AI features) and FMP (market data).
→ See detailed instructionsRun the bot and watch it execute your strategies automatically.
→ See how to run the botTradier is the brokerage platform that executes your trades. Here's how to set it up:
💡 Pro Tip: Start with a Sandbox account to test the bot without risking real money. Once you're comfortable, upgrade to a live account.
Discord notifications keep you updated on all trades and bot activity in real-time.
https://discord.com/api/webhooks/123456789/AbCdEfGhIjKlMnOpQrStUvWxYz
✅ Test It: After setup, run a test trade. You should see a message appear in your Discord channel!
Purpose: Powers AI features (Pine Script generation, analytics chat)
sk-)💰 Cost: Free $5 credit for new accounts. After that, pay-as-you-go (~$0.01-0.05 per Pine Script generation).
Purpose: Downloads historical market data for strategy testing
✅ Free Tier: 250 API calls per day (plenty for casual use). Paid plans available for heavy use.
Once you've configured everything, here's how to run the bot:
python spy_tradier_webhook.py
This script executes trades based on webhook signals
python position_monitor.py
This monitors open trades and executes exit orders
⚠️ Important: Keep all three terminals running while trading. Use Ctrl+C to stop any script.
pip install -r requirements.txt
Flask - Web dashboard frameworkpandas - Data manipulationrequests - API callspython-dotenv - Environment variablesopenai - AI featuresplotly - Charts and analytics💡 Pro Tip: Use a virtual environment to keep dependencies isolated:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Solution: Install missing dependencies:
pip install -r requirements.txt
Solution: Add API keys to Settings page and restart server
Solutions:
Solution: Verify webhook URL is correct and server is restarted
Solutions:
http://127.0.0.1:8080.env file to git💡 Recommended: Use the Settings page to configure max daily loss and position size limits to protect your account.
If you're stuck or have questions not covered here:
📧 Check the documentation files in your project folder
🔍 Review the terminal logs for error messages
⚙️ Double-check all Settings are configured correctly