Skip to main content
The user asks about a ticker; the agent pulls live quotes and fundamentals with yfinance tools.
Prerequisites
  • Python 3.10 or higher
  • PraisonAI Agents package installed
  • PraisonAI Tools package installed
  • yfinance package installed

YFinance Tools

Use YFinance Tools to retrieve and analyze financial data with AI agents.
1

Install Dependencies

First, install the required packages:
2

Import Components

Import the necessary components:
3

Create Agent

Create a financial data agent:
4

Define Task

Define the financial analysis task:
5

Run Agent

Initialize and run the agent:

Understanding YFinance Tools

What are YFinance Tools?

YFinance Tools provide financial data capabilities for AI agents:
  • Real-time stock prices
  • Detailed company information
  • Historical market data
  • Financial metrics and ratios
  • Market performance analysis

Key Components

Finance Agent

Create specialized finance agents:

Finance Task

Define finance tasks:

Process Types

Sequential or parallel processing:

Finance Options

Customize data parameters:

Available Functions

Examples

Basic Financial Data Agent

Advanced Market Analysis with Multiple Agents

Best Practices

Configure agents with clear finance focus:
Define specific analysis objectives:

Common Patterns

Market Analysis Pipeline

Custom Tools

Build your own agent tools

Tools Overview

Browse PraisonAI tool documentation