This repository provides tools and agents for stock analysis using modular Python components. It supports both multi-tool agent workflows and dedicated stock analysis agents, making it flexible for a variety of financial data analysis tasks.
- Multi-tool Agent Framework: Combine different tools and agents for composite workflows.
- Stock Analysis Agent: Specialized modules focused on stock market data analysis.
- Extensible & Pythonic: Easy to expand and integrate into bigger projects.
- AI-Powered: Integrates with Google Gemini API and Vertex AI for advanced insights.
Ask questions like:
- 📈 "Show me the latest trends for Apple stock."
- 🕵️♂️ "Compare Google and Amazon stock performance in the last year."
- 📰 "Summarize the latest news for Tesla."
- 🧠 "Predict tomorrow’s movement for Microsoft based on recent data."
If it’s about stocks, analysis, or financial data—try it!
.
├── multi_tool_agent/
│ └── __init__.py
├── stock_anaylsis_agent/
│ └── __init__.py
├── .gitignore
├── Readme.md
git clone https://github.com/avanshh99/stock_analysis_agent.git
cd stock_analysis_agent
# (Recommended) Use a virtual environment (windows):
python3 -m venv <env-name>
source venv/bin/activateSome features need API keys (for real-time data & AI):
-
Create a
.envfile in the project root. -
Add keys like:
# Stock/financial data providers ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here FINNHUB_API_KEY=your_finnhub_key_here # Google Gemini API (for Gemini Pro & Gemini 1.5) GOOGLE_API_KEY=your_google_gemini_api_key_here GOOGLE_GENAI_USE_VERTEXAI=FALSE -
Install
python-dotenvif needed.
Import and extend in your own scripts or notebooks:
from stock_anaylsis_agent import agent as stock_agent
from multi_tool_agent import agent as multi_tool
# Examples:
# stock_agent.analyze('AAPL')
# multi_tool.run_custom_workflow(...)To launch the agent using Google ADK’s web interface, simply run the following command in your terminal:
adk webThis will start the ADK web server, allowing you to interact with your agents through a browser UI.
If you want to run the agent module directly (for example, for testing):
python -m stock_anaylsis_agent.agentPull requests, issues, and stars are all welcome!
Built with ❤️ by Avan