AI Market Intelligence is an advanced, multi-agent financial analytics platform powered by Google Gemini 2.0.
It enables researchers, traders, asset managers, and risk professionals to:
- Generate benchmark-aware investment insights
- Analyze global equities
- Compute quantitative risk metrics
- Explore markets using interactive AI explanations
The platform integrates real market data, multi-agent reasoning, quantitative finance, and interactive visual analytics into a single institutional-grade workflow.
- Overview
- Screenshots
- Key Features
- Multi-Agent Architecture
- System Capabilities
- Quantitative Analytics
- Tab-by-Tab Breakdown
- Data Sources
- Installation & Setup
- Tech Stack
- Target Users
- Future Enhancements
AI Market Intelligence is a decision-support platform combining:
- ๐งฉ Multi-agent AI reasoning
- ๐ Benchmark-aware financial analysis
- ๐ Quantitative market analytics
- ๐ฌ Real-time sentiment extraction
- ๐ Global market data
- ๐ผ Portfolio optimization
- ๐ค Interactive AI insights
It is designed to help professionals make faster, smarter, and data-driven decisions in financial markets.
Six highly specialized AI agents independently analyze different domains:
| Agent | Role |
|---|---|
| ๐ง MarketAnalystAgent | Market trends, volatility, momentum & regime detection |
| ๐ข CompanyResearchAgent | Fundamentals, earnings, catalysts, valuation |
| ๐ฌ SentimentAgent | Region-aware news sentiment from live RSS feeds |
| โ๏ธ RiskAnalystAgent | VaR, CVaR, beta, drawdown, correlations, stress tests |
| ๐ PortfolioStrategistAgent | Allocation strategies: equal weight / risk parity / momentum |
| ๐จโ๐ผ TeamLeadAgent | Synthesizes all insights into a final benchmark-aware report |
- ๐ Multi-country ticker normalization
- ๐ Regional benchmark selection
- ๐๏ธ Exchange suffix auto-application
- ๐ฐ Region-aware news in multiple languages
Includes institutional-grade risk & performance analytics:
- Rolling Volatility
- Rolling Beta (vs benchmark)
- Correlation Heatmap
- Maximum Drawdown
- Alpha & Tracking Error
- Value-at-Risk (VaR)
- Conditional VaR (CVaR / Expected Shortfall)
- Sortino Ratio
- Sector Composition Approximation
Stress Testing:
- โก Shock-based stress test
- ๐ Historical analog crash scenarios
All insights, charts, and metrics are contextualized against benchmark indices, such as:
S&P 500, NASDAQ 100, Dow Jones, FTSE 100, Nikkei 225, Nifty 50, Euro Stoxx 50
Users can ask Gemini:
"Explain this chart to me"
And receive:
- Observations
- Risk insights
- Anomalies
- Trend interpretation
- Recommendations
Supports multiple allocation frameworks:
- Equal-Weight
- Risk-Parity (inverse volatility)
- Momentum Tilt
- Custom Inputs
Includes expected risk/return interpretation for each strategy.
A conversational interface to ask about:
- Market questions
- Company comparisons
- Risk explanations
- Benchmark analysis
- Financial definitions
- Portfolio construction
The system follows a multi-agent orchestration pipeline where each specialized AI agent contributes domain-specific intelligence to the final report.
Each Agent Receives
- ๐งน Cleaned and pre-processed data
- ๐ Historical price series
- ๐ Computed returns and volatility metrics
- ๐ Regional sentiment information
- ๐งฎ Benchmark-adjusted metrics
The TeamLeadAgent consolidates all agent outputs, applies benchmark awareness, and generates a final institutional-grade report that includes:
- ๐ง Synthesized insights
- ๐ Quantitative performance metrics
- โ๏ธ Risk evaluation
- ๐ผ Portfolio recommendations
- ๐ฌ Interactive explanations via Gemini
- โ Global equity analysis
- โ Benchmark-relative performance
- โ Rolling factor analytics
- โ Quantitative risk modeling
- โ AI-assisted chart interpretation
- โ Portfolio design & optimization
- โ News sentiment classification
- โ Multi-agent chain-of-thought synthesis
- โ Rich visualization suite (powered by Matplotlib & Seaborn)
| Metric | Description |
|---|---|
| VaR (Value-at-Risk) | Worst expected loss at a given confidence level |
| CVaR (Expected Shortfall) | Average loss in tail-risk events |
| Rolling Beta | Benchmark sensitivity over time |
| Alpha | Outperformance vs benchmark |
| Tracking Error | Deviation from benchmark |
| Correlation Matrix | Inter-asset co-movements |
| Drawdown Curve | Historical peak-to-trough dynamics |
| Stress Test | Shock simulation & historical crash modeling |
| Sector Exposure Approximation | Equal-weighted sector inference |
Beginner-friendly introduction & glossary.
- ๐ Price charts
- ๐ Cumulative returns
- ๐ง MarketAnalystAgent insights
- ๐ข Company metadata
- ๐ฐ Financials
- ๐ฐ News sentiment
- ๐งพ CompanyResearchAgent results
- ๐ Volatility
- ๐ฅ Correlation heatmaps
- โ๏ธ Rolling beta
- ๐งฎ CVaR & VaR
- ๐ฅ Stress tests
- ๐๏ธ RiskAnalystAgent insights
- ๐ฌ Interactive Gemini explanations
- ๐ Multi-chart insights
- โ๏ธ Equal-weight
- ๐ Risk parity
- ๐ Momentum tilt
- ๐ค PortfolioStrategistAgent recommendations
- ๐ฃ๏ธ Context-aware question routing
- ๐ค Multi-agent responses
- ๐งพ TeamLeadAgent multi-agent report
- ๐ Benchmark-aware synthesis
| Source | Usage |
|---|---|
| Yahoo Finance | Prices, metadata, and returns |
| RSS News Feeds | Region-aware news sentiment |
| Google Gemini 2.0 | AI reasoning, synthesis, and explanations |
Clone the repository and install the required dependencies:
pip install -r requirements.txtEnsure you add your Google API key as an environment variable
GOOGLE_API_KEY="your_api_key"
Run the Streamlit application
streamlit run app.py
| Component | Technology |
|---|---|
| ๐ฅ๏ธ Frontend | Streamlit |
| โ๏ธ Backend | Python |
| ๐ง AI Models | Google Gemini 2.0 Flash |
| ๐พ Data Sources | Yahoo Finance + RSS Feeds |
| ๐ Visualization | Matplotlib / Seaborn |
| ๐ค Orchestration | Custom Multi-Agent Framework |
The platform is designed for:
- ๐งพ Equity Researchers
- ๐น Traders
- ๐ผ Asset Managers
- โ๏ธ Risk Managers
- ๐ Quantitative Analysts
- ๐ Finance Students
- ๐ป FinTech Developers
- ๐ Monte Carlo return simulation
- ๐งฎ Efficient frontier (mean-variance optimization)
- ๐ Factor model integration (FamaโFrench)
- ๐ฐ ETF + Crypto asset class support
- ๐พ Persistent user sessions
















