Skip to main content
YFinanceTools enable an Agent to access stock data, financial information and more from Yahoo Finance.

Prerequisites

The following example requires the yfinance and openai libraries.

Example

The following agent will provide information about the stock price and analyst recommendations for NVDA (Nvidia Corporation).
cookbook/91_tools/yfinance_tools.py

Toolkit Params

Only get_current_stock_price is enabled by default. Enable the rest individually or pass all=True.

Toolkit Functions

You can use include_tools or exclude_tools to modify the list of tools the agent has access to. Learn more about selecting tools.

Developer Resources