API Reference#

Overview#

The yfinance package provides easy access to Yahoo! Finance’s API to retrieve market data. It includes classes and functions for downloading historical market data, accessing ticker information, managing cache, and more.

Public API#

The following are the publicly available classes, and functions exposed by the yfinance package:

  • Ticker: Class for accessing single ticker data.

  • Tickers: Class for handling multiple tickers.

  • download: Function to download market data for multiple tickers.

  • Search: Class for accessing search results.

  • Sector: Domain class for accessing sector information.

  • Industry: Domain class for accessing industry information.

  • Market: Class for accessing market status & summary.

  • EquityQuery: Class to build equity query filters.

  • FundQuery: Class to build fund query filters.

  • screen: Run equity/fund queries.

  • enable_debug_mode: Function to enable debug mode for logging.

  • set_tz_cache_location: Function to set the timezone cache location.