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

industries

Gets the industries within the sector.

key

Retrieves the key of the domain entity.

name

Retrieves the name of the domain entity.

overview

Retrieves the overview information of the domain entity.

research_reports

Retrieves research reports related to the domain entity.

symbol

Retrieves the symbol of the domain entity.

ticker

Retrieves a Ticker object based on the domain entity's symbol.

top_companies

Retrieves the top companies within the domain entity.

top_etfs

Gets the top ETFs for the sector.

top_mutual_funds

Gets the top mutual funds for the sector.

Methods

__init__(key[, session, proxy])