An interactive Streamlit web app that uses Google's Gemini LLM, financial data from Yahoo Finance, and custom agent reasoning to analyze stock performance, summarize company profiles, and recommend top investment opportunities.
-
Compare Stock Performance
Uses real-time data from Yahoo Finance to evaluate percentage change over the last 6 months. -
LLM-Driven Market Analysis
Custom agents powered by Google's Gemini API analyze market trends and stock fundamentals. -
Company Research
Automatically summarizes sector, market cap, business overviews, and latest news headlines. -
Investment Recommendations
Aggregates all insights to generate a ranked list of the best stocks to consider. -
Interactive Charts
Visualize historical stock performance using Plotly.
- Streamlit – Web UI
- Google Gemini (via Agno SDK) – LLM-based decision logic
- Yahoo Finance – Financial data
- Plotly – Data visualization
- Upload
investment_app.pyor use the notebook version. - Install dependencies:
!pip install streamlit yfinance plotly pyngrok agno - Set your ngrok authtoken:
!ngrok config add-authtoken YOUR_NGROK_TOKEN - Launch the app:
!nohup streamlit run investment_app.py --server.port 8501 & from pyngrok import ngrok public_url = ngrok.connect(8501) print(public_url)
pip install streamlit yfinance plotly agno
streamlit run investment_app.py- Comma-separated stock symbols (e.g.,
AAPL, TSLA, GOOG) - Google Gemini API key (from Google AI Studio)
- Textual investment report with:
- Market analysis
- Company profiles
- LLM-based investment recommendations
- Interactive 6-month stock performance chart
Feel free to fork this repo and submit PRs for new features like:
- Sentiment analysis from news headlines
- Integration with financial APIs (e.g., Alpha Vantage)
- International stock support
MIT License