Skip to content

πŸ“ˆ AI-powered stock assistant using Strands Agent that analyzes stocks using real-time web data and financial insights to answer investment queries.

Notifications You must be signed in to change notification settings

pajaydev/stock-assistant-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Stock Assistant Agent

πŸ“ˆ AI-powered stock assistant using Strands Agent that analyzes stocks using real-time web data and financial insights.

Stock Assistant

πŸ“¦ Prerequisites

  • Install uv
curl -Ls https://astral.sh/uv/install.sh | sh
  • AWS Account with Bedrock access

πŸš€ Quick Start

  1. Clone the repository
git clone https://github.com/pajaydev/stock-assistant-agent.git
cd stock-assistant-agent
  1. Set up Python virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
uv pip install -r requirements.txt
  1. 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
  1. Run the app:
streamlit run stock_assistant_agent.py
  1. Open http://localhost:8501

πŸ› οΈ Usage

Enter your investment query (e.g., "Should I buy AAPL stock?") and get structured analysis with:

  • Financial metrics
  • Risk considerations
  • Investment recommendations

Architecture

  • Web Agent: Searches for recent news and market sentiment
  • Finance Agent: Fetches financial data using YFinance
  • Main Agent: Coordinates analysis and generates recommendations

Dependencies

  • strands-agents: Framework for creating AI agents
  • agno: Tools for web search and financial data
  • streamlit: Web application framework
  • python-dotenv: Environment variable management

About

πŸ“ˆ AI-powered stock assistant using Strands Agent that analyzes stocks using real-time web data and financial insights to answer investment queries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages