π AI-powered stock assistant using Strands Agent that analyzes stocks using real-time web data and financial insights.
- Install
uv
curl -Ls https://astral.sh/uv/install.sh | sh- AWS Account with Bedrock access
- Clone the repository
git clone https://github.com/pajaydev/stock-assistant-agent.git
cd stock-assistant-agent- Set up Python virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
uv pip install -r requirements.txt- Configure aws credentails
aws configure
# OR set environment variables
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_DEFAULT_REGION=us-east-1- Run the app:
streamlit run stock_assistant_agent.pyEnter your investment query (e.g., "Should I buy AAPL stock?") and get structured analysis with:
- Financial metrics
- Risk considerations
- Investment recommendations
- Web Agent: Searches for recent news and market sentiment
- Finance Agent: Fetches financial data using YFinance
- Main Agent: Coordinates analysis and generates recommendations
- strands-agents: Framework for creating AI agents
- agno: Tools for web search and financial data
- streamlit: Web application framework
- python-dotenv: Environment variable management
