Overview
The Finance Agent is a powerful AI-powered finance assistant built with the Agno framework that provides real-time financial data, stock analysis, and market insights using natural language queries. It combines YFinance for financial data and DuckDuckGo for web search to deliver comprehensive market intelligence.Key Features
- Real-time stock prices and historical data
- Financial analysis with analyst recommendations
- Web search for latest financial news
- Interactive web UI via Agno Playground
- Structured output with tables and bullet points
Tech Stack
Framework
Agno - Modern AI agent framework
LLM Model
Meta Llama-3.3-70B-Instruct via Nebius
Financial Data
YFinance - Yahoo Finance API wrapper
Web Search
DuckDuckGo - Privacy-focused search
Prerequisites
Nebius API Key
Get your API key from Nebius Token Factory
Installation
Implementation
Agent Configuration
The finance agent is configured with specialized tools and instructions for financial analysis:Available Tools
The agent has access to these specialized tools:YFinance Tools
YFinance Tools
Stock Price: Real-time and historical stock pricesAnalyst Recommendations: Buy/sell/hold recommendations from financial analystsStock Fundamentals: P/E ratios, market cap, revenue, earnings, and more
DuckDuckGo Tools
DuckDuckGo Tools
Web Search: Search for latest financial news and market informationPrivacy-focused: No tracking or personal data collection
Usage
Example Queries
Here are example queries you can try with the finance agent:Features in Detail
Real-time Stock Data
Query current stock prices, historical data, and market trends for any publicly traded company.Financial Analysis
Access analyst recommendations and comprehensive fundamental analysis:Market Intelligence
Stay updated with the latest financial news and market information:The agent uses DuckDuckGo for web searches, ensuring privacy-focused results without tracking.
Security & Privacy
Best Practices
- API Keys: Store securely in environment variables, never commit to version control
- No Data Storage: The agent doesn’t store your queries or personal data
- Privacy: Uses DuckDuckGo for web searches (no tracking)
Troubleshooting
API Key Error
API Key Error
Ensure your
NEBIUS_API_KEY is correctly set in the .env file and the key is valid.Port Already in Use
Port Already in Use
The application will automatically find an available port if the default is busy.
Network Issues
Network Issues
Ensure you have a stable internet connection for real-time data access.
Module Import Errors
Module Import Errors
Verify all dependencies are installed correctly:
Configuration Options
The agent can be customized with different settings:| Option | Description | Default |
|---|---|---|
model | LLM model to use | Meta Llama-3.3-70B-Instruct |
show_tool_calls | Display tool calls in UI | True |
markdown | Enable markdown formatting | True |
instructions | Custom instructions for the agent | Tables for numbers, bullets for text |
Next Steps
Explore Agno
Learn more about the Agno framework
YFinance Docs
Explore YFinance capabilities
Nebius Token Factory
Get started with Nebius AI
Advanced Agents
Build more complex multi-agent systems