yfinance.Sector#
- class yfinance.Sector(key, session=None, proxy=None)#
Represents a financial market sector and allows retrieval of sector-related data such as top ETFs, top mutual funds, and industry data.
- Parameters:
key (str) – The key representing the sector.
session (requests.Session, optional) – A session for making requests. Defaults to None.
proxy (dict, optional) – A dictionary containing proxy settings for the request. Defaults to None.
See also
Sector.industries
Map of sector and industry
Attributes
Gets the industries within the sector.
Retrieves the key of the domain entity.
Retrieves the name of the domain entity.
Retrieves the overview information of the domain entity.
Retrieves research reports related to the domain entity.
Retrieves the symbol of the domain entity.
Retrieves a Ticker object based on the domain entity's symbol.
Retrieves the top companies within the domain entity.
Gets the top ETFs for the sector.
Gets the top mutual funds for the sector.
Methods
__init__
(key[, session, proxy])