An AI-powered financial assistant built with PhiData, Groq, YFinance, and DuckDuckGo.
- Fetches real-time stock prices, fundamentals, and analyst recommendations via YFinance
- Searches the web for latest company news via DuckDuckGo
- Gives Buy / Hold / Sell recommendations with reasoning
git clone https://github.com/YOUR_USERNAME/financial-agent.git
cd financial-agentconda create -p venv python=3.12
conda activate ./venvpip install -r requirements.txtCreate a .env file in the project root:
GROQ_API_KEY=your_groq_api_key_here
Get your free Groq API key at: https://console.groq.com
python financial_agent.pyfinancial_agent.py # Main financial AI agent
pdf_assistant.py # PDF Q&A assistant
requirements.txt # Python dependencies
.env # API keys (never commit this!)
llama-3.3-70b-versatilevia Groq API
-Never commit your .env file. It is already excluded in .gitignore.
- For incase .venv files not reading inside: .vscode folder >> settings.json>> { "python.terminal.useEnvFile": true } paste this command for reading env api keys in terminal
- Install multipart for playground.py functioning use command: pip install python-multipart