Welcome to your personal AI-powered investment assistant! This project democratizes professional-grade investment strategies using AI, making hedge fund-level analysis accessible to everyone.
Multi-Agent System:
- Investment Agent - Collects preferences via questionnaire and creates investment strategy
- Portfolio Agent - Translates strategy into concrete ETF portfolio (max 4 ETFs)
- Analyst Agents - Comprehensive analysis including:
- Fees Agent - Analyzes Total Expense Ratios (TER)
- Diversification Agent - Evaluates asset class, geography, and sector distribution
- Alignment Agent - Assesses risk tolerance and time horizon alignment
- Performance Agent - Calculates CAGR, volatility, Sharpe ratio, max drawdown, alpha & beta
- Analysis Orchestrator - Aggregates all analyses for final reporting
⚠️ Disclaimer: This project is for educational and research purposes only. Not financial advice. Consult a qualified professional before making investment decisions.
- AI-Driven Analysis - Advanced market data analysis and strategy suggestions
- Portfolio Management - Build and track ETF-based investment portfolios
- Educational Tool - Learn LangGraph and AI applications in finance
- Python 3.10+
- API Keys Required:
- OpenAI API Key (or Google/Anthropic) - For LLM functionality
- Polygon.io API Key - For financial data (free tier available)
# Clone and navigate
git clone https://github.com/matvix90/ai-robo-advisor.git
cd ai-robo-advisor
# Setup environment
python3 -m venv venv && source venv/bin/activate
pip install -e .
# Configure API keys
cp .env.example .env
# Edit .env with your API keys
# Run the advisor
run-advisorgit clone https://github.com/matvix90/ai-robo-advisor.git
cd ai-robo-advisorpython3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -e .# Copy example environment file
cp .env.example .env
# Edit .env file with your keys:
# OPENAI_API_KEY=your-openai-api-key
# POLYGON_API_KEY=your-polygon-api-keyNote: Portfolios limited to 4 ETFs and 2 years of data (free Polygon.io constraints).
# Basic run
run-advisor
# Show AI reasoning process
run-advisor --show-reasoningComprehensive test suite for code quality and regression prevention.
# Run all tests
python -m pytest tests/
# OR
./run_tests.sh
# Run with coverage
python -m pytest tests/ --cov=src --cov-report=html
# Test categories
python -m pytest tests/ -m unit # Unit tests only
python -m pytest tests/ -m integration # Integration tests
python -m pytest tests/ -m "not slow" # Fast testspip install -e ".[test]"Contributions welcome! Please:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See CONTRIBUTING.md for detailed guidelines.
Distributed under the MIT License. See LICENSE for more information.
⭐ Star this repo if you find it helpful!


