FundsData#

class yfinance.scrapers.funds.FundsData(data: YfData, symbol: str, proxy=None)#

ETF and Mutual Funds Data Queried Modules: quoteType, summaryProfile, fundProfile, topHoldings

Notes: - fundPerformance module is not implemented as better data is queryable using history

Parameters:
  • data (YfData) – The YfData object for fetching data.

  • symbol (str) – The symbol of the fund.

  • proxy (optional) – Proxy settings for fetching data.

Attributes

asset_classes

Returns the asset classes of the fund.

Returns:

The asset classes.

Return type:

Dict[str, float]

bond_holdings

Returns the bond holdings of the fund.

Returns:

The bond holdings.

Return type:

pd.DataFrame

bond_ratings

Returns the bond ratings of the fund.

Returns:

The bond ratings.

Return type:

Dict[str, float]

description

Returns the description of the fund.

Returns:

The description.

Return type:

str

equity_holdings

Returns the equity holdings of the fund.

Returns:

The equity holdings.

Return type:

pd.DataFrame

fund_operations

Returns the fund operations.

Returns:

The fund operations.

Return type:

pd.DataFrame

fund_overview

Returns the fund overview.

Returns:

The fund overview.

Return type:

Dict[str, Optional[str]]

sector_weightings

Returns the sector weightings of the fund.

Returns:

The sector weightings.

Return type:

Dict[str, float]

top_holdings

Returns the top holdings of the fund.

Returns:

The top holdings.

Return type:

pd.DataFrame

Methods

__init__(data: YfData, symbol: str, proxy=None)
Parameters:
  • data (YfData) – The YfData object for fetching data.

  • symbol (str) – The symbol of the fund.

  • proxy (optional) – Proxy settings for fetching data.

quote_type() str

Returns the quote type of the fund.

Returns:

The quote type.

Return type:

str