A comprehensive AI-powered trading agent system built with Agno framework that provides real-time stock analysis, market research, and trading recommendations. Compatible with os.agno.com.
-
Day Trading Analysis Team: Multi-agent system with specialized roles:
- Market Research Agent: Real-time market data gathering
- Stock Analysis Agent: Technical and fundamental analysis
- Recommendation Agent: Trading recommendations with risk management
- Portfolio Manager: Team coordination and portfolio analysis
-
Real-time Market Data: Integration with MarketStack API for live stock data
-
Multi-Agent Collaboration: Coordinated team approach for comprehensive analysis
-
Web Interface: Compatible with os.agno.com platform
-
Risk Management: Built-in risk assessment and position sizing
- macOS (tested on macOS 14+)
- Python 3.9 or higher
- Git
git clone <your-repository-url>
cd agent-os# Create virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Verify activation (should show the venv path)
which python# Upgrade pip
pip install --upgrade pip
# Install required packages
pip install -r requirements.txtCreate a .env file in the project root:
# Copy the example or create new .env file
touch .envAdd your API keys to .env:
GOOGLE_API_KEY="your_google_api_key_here"
MARKETSTACK_API_KEY="your_marketstack_api_key_here"Required API Keys:
- Google API Key: Get from Google AI Studio
- MarketStack API Key: Get from MarketStack (free tier available)
# Ensure virtual environment is activated
source venv/bin/activate
# Run the main trading agent system
python my_os.pyThe system will start on http://localhost:7777 and will be accessible from os.agno.com.
- Check that the server starts without errors
- Visit os.agno.com
- Your agent should appear as "Trading Agent OS"
- Test with a stock analysis request like "Analyze AAPL, GOOGL, MSFT"
agent-os/
├── my_os.py # Main AgentOS application
├── requirements.txt # Python dependencies
├── .env # Environment variables (create this)
├── trader/ # Trading agent modules
│ ├── marketstack_client.py # MarketStack API client
│ └── indicators.py # Technical indicators
│
└── tmp/ # Temporary files and vector database
assistant: Main trading assistantportfolio_manager: Portfolio coordination and managementmarket_research_agent: Market data gathering and analysisstock_analysis_agent: Technical and fundamental analysisrecommendation_agent: Trading recommendations
day_trading_team: Coordinated multi-agent trading analysis team
Once running, you can interact with the system through os.agno.com:
"Analyze AAPL for day trading opportunities"
"What are the market conditions for tech stocks?"
"Provide trading recommendations for TSLA, NVDA"
"Analyze the portfolio: AAPL, GOOGL, MSFT, AMZN"
The system also exposes REST API endpoints:
GET /: System informationGET /health: Health checkPOST /analyze: Stock analysis (JSON payload with symbols array)
1. Import Errors
# Ensure virtual environment is activated
source venv/bin/activate
# Reinstall dependencies
pip install -r requirements.txt2. API Key Issues
- Verify
.envfile exists and contains valid API keys - Check that environment variables are loaded correctly
3. Port Already in Use
# Kill existing processes on port 7777
lsof -ti:7777 | xargs kill -94. Connection Issues with os.agno.com
- Ensure the server is running on
http://localhost:7777 - Check firewall settings
- Verify CORS configuration allows os.agno.com
Enable debug mode by running:
# Run with verbose output
python my_os.py --debugCheck logs in the terminal output for detailed error messages.
# Test with AgentOS (recommended)
python my_os.py- Create new agent in
trader/directory - Import and add to
my_os.py - Update team configuration as needed
[Add your license information here]
[Add contribution guidelines here]
For issues and questions:
- Check the troubleshooting section above
- Review terminal output for error messages
- Ensure all API keys are valid and properly configured