An intelligent multi-agent system for comprehensive market research and financial analysis. MarketMind leverages AI to gather, analyze, and synthesize company information from multiple global sources, providing actionable insights for investment decisions and market understanding.
๐ Features
- Research Agent: Scrapes news from Google News, Yahoo Finance, and MarketWatch
- Financial Analyst: Real-time stock data with global market support (NYSE, NASDAQ, NSE, KRX, TSE)
- Sentiment Analyst: AI-powered sentiment analysis with legal risk detection
- Data Analyst: Market trends, competitor analysis, and opportunity identification
- Regulatory Analyst: Compliance monitoring and regulatory risk assessment
- Report Writer: Professional PDF reports with comprehensive analysis
- US Markets: NYSE, NASDAQ (Apple, Tesla, Microsoft, McDonald's)
- Indian Markets: NSE, BSE (TCS, ITC, Vedanta, Reliance)
- Asian Markets: KRX, TSE (Samsung, Toyota, Sony, Honda)
- European Markets: XETRA (BMW, Mercedes, Volkswagen, SAP)
- Multi-currency support with regional formatting
- AI-powered news relevance scoring
- Legal risk detection and compliance monitoring
- Competitor analysis with industry categorization
- Automated report generation with professional formatting
- AI/ML: Google Gemini 1.5 Pro for advanced analysis
- Data Sources: Yahoo Finance, Google News, MarketWatch
- Analysis: TextBlob, NLTK for sentiment analysis
- Visualization: ReportLab for PDF generation
- Data Processing: Pandas, NumPy for financial calculations
- Python 3.8+
- Google Gemini API Key
- Internet connection for real-time data
git clone https://github.com/ManthanN75/marketMind.git
cd marketMind
# Create virtual environment
python -m venv venv
# Activate virtual environment
# Windows:
.\venv\Scripts\activate
# macOS/Linux:
source venv/bin/activatepip install -r requirements.txt# Copy example environment file
cp .env.example .env
# Edit .env file with your API keys
GEMINI_API_KEY=your_gemini_api_key_herepython main.py# US Companies
"Apple", "AAPL", "Tesla", "TSLA", "McDonald's", "MCD"
# Indian Companies
"TCS", "TCS.NS", "ITC Limited", "Vedanta"
# Global Companies
"Samsung", "Toyota", "BMW.DE", "Sony"- Enter Company Name:
Tesla - Data Collection: News scraping, financial data retrieval
- AI Analysis: Sentiment analysis, risk assessment, trend identification
- Report Generation: Comprehensive PDF with actionable insights
marketMind/
โโโ data/
โ โโโ raw_data.json # Scraped news articles
โ โโโ financial_data.json # Stock data and metrics
โ โโโ sentiment_data.json # Sentiment analysis results
โ โโโ analysis_data.json # Market trends and insights
โ โโโ regulatory_data.json # Compliance information
โโโ reports/
โ โโโ [Company]_report.pdf # Professional analysis report
โโโ logs/
โโโ analysis.log # System logs
- Gemini API: For advanced AI analysis and insights
- Optional APIs: Twitter/X API for social sentiment (future enhancement)
GEMINI_API_KEY=your_key_here
TWITTER_API_KEY=optional
TWITTER_API_SECRET=optional| Region | Exchange | Suffix | Example |
|---|---|---|---|
| USA | NYSE, NASDAQ | - | AAPL, TSLA |
| India | NSE | .NS | TCS.NS, ITC.NS |
| India | BSE | .BO | TCS.BO |
| South Korea | KRX | .KS | 005930.KS |
| Japan | TSE | .T | 7203.T |
| Germany | XETRA | .DE | BMW.DE |
- USD ($) - US Dollar
- INR (โน) - Indian Rupee with Crore/Lakh formatting
- JPY (ยฅ) - Japanese Yen
- KRW (โฉ) - Korean Won
- EUR (โฌ) - Euro
- Current price and price changes
- Market capitalization (multi-currency)
- P/E ratios and financial health indicators
- 52-week high/low ranges
- Trading volume analysis
- News sentiment scoring (-1 to +1)
- Legal risk detection
- Market trend identification
- Social media sentiment (when configured)
- Industry competitor mapping
- Market share analysis
- Competitive positioning
- Strategic opportunity identification
API Key Errors
# Ensure your .env file contains:
GEMINI_API_KEY=your_actual_api_keyCompany Not Found
- Try alternative company names or ticker symbols
- Check supported exchanges list
- Use full company names for better results
Network Issues
- Ensure stable internet connection
- Some regions may require VPN for certain data sources
- Fork the repository
- Create feature branch (
git checkout -b feature/new-feature) - Commit changes (
git commit -m 'Add new feature') - Push to branch (
git push origin feature/new-feature) - Open a Pull Request
- Follow PEP 8 style guidelines
- Add comprehensive error handling
- Include unit tests for new features
- Update documentation for new capabilities
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini API for advanced AI capabilities
- Yahoo Finance for real-time financial data
- Various news sources for comprehensive coverage
- Open-source Python community for excellent libraries
For issues, questions, or contributions:
- Open an issue on GitHub
- Check existing documentation
- Review troubleshooting section
MarketMind - Intelligent Market Analysis for Informed Decisions ๐ฏ