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 library.

Example

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

Toolkit Params

The YFinanceTools toolkit does not require any configuration parameters. All functions are enabled by default and do not have individual enable/disable flags. Simply instantiate the toolkit without any parameters.

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