Overview of the yfinance Public API
mainThe yfinance package provides a comprehensive interface for retrieving market data from Yahoo! Finance. The public API is organized into several functional areas:
- Ticker Data: Use
Tickerfor single assets andTickersfor managing multiple assets. - Market & Calendars: Access market summaries via
Marketand event calendars viaCalendars. - Data Downloading: Use the
downloadfunction for bulk historical market data retrieval. - Search & Lookup: Use
Searchfor general search results andLookupfor specific ticker lookups. - Live Streaming: Access live market data via
WebSocket(synchronous) orAsyncWebSocket(asynchronous). - Screener & Queries: Use
EquityQuery,FundQuery, andETFQueryto build filters, and execute them usingscreen. - Domain Data: Access sector and industry information via
SectorandIndustryclasses. - Authentication & Config: Manage authentication via
Authand global settings viaconfig.