An intelligent financial analysis agent powered by OpenAI's GPT-4 that provides comprehensive stock market analysis, company insights, and financial recommendations. This project leverages the Agno framework and yfinance to deliver real-time financial data and analysis.
- Real-time stock price analysis
- Company fundamental analysis
- Analyst recommendations
- Historical price data analysis
- Company news monitoring
- Report generation and export
- Interactive playground interface
- Clone the repository:
git clone https://github.com/pakagronglb/python-stock-advisory-agent
cd python-stock-advisory-agent- Install required dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here- Start the playground:
python finance_agent.py- Access the web interface at:
http://localhost:7777Or Agno's playground URL
- Start analyzing stocks by entering queries like:
- "Analyze Tesla stock performance"
- "Compare Apple and Microsoft fundamentals"
- "Generate a report on Nike's financial health"
- agno
- openai
- yfinance
- python-dotenv
- pandas
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project was inspired by and built following the tutorial by Jie Jenn. Please check out his YouTube channel for more amazing content on Python and automation.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to Jie Jenn for the excellent tutorial
- Agno Framework for the AI agent infrastructure
- yfinance for financial data access
- OpenAI for GPT-4 capabilities
Made with ❤️ by Pakagrong Lebel
