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/activate
Some features need API keys (for real-time data & AI):
-
Create a
.env
file 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-dotenv
if 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 web
This 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.agent
Pull requests, issues, and stars are all welcome!
Built with β€οΈ by Avan