fmp_py.fmp_valuation
Classes
Module Contents
- class fmp_py.fmp_valuation.FmpValuation(api_key: str = os.getenv('FMP_API_KEY'))
Bases:
fmp_py.fmp_base.FmpBase- historical_rating(symbol: str) pandas.DataFrame
Retrieves the historical rating data for a given symbol.
- Parameters:
symbol (str) – The symbol of the stock.
- Returns:
A DataFrame containing the historical rating data, sorted by date in ascending order.
- Return type:
pd.DataFrame
- levered_dcf(symbol: str) pandas.DataFrame
Calculate the levered discounted cash flow (DCF) for a given symbol.
Parameters: symbol (str): The symbol of the stock for which to calculate the DCF.
Returns: pd.DataFrame: A DataFrame containing the DCF data for the given symbol, sorted by year in ascending order.
- advanced_dcf(symbol: str) pandas.DataFrame
Retrieves advanced discounted cash flow (DCF) data for a given symbol.
- Parameters:
symbol (str) – The symbol of the stock or company.
- Returns:
A DataFrame containing the DCF data, sorted by year in ascending order.
- Return type:
pd.DataFrame
- Raises:
ValueError – If no data is found in the API response.
- discounted_cash_flow(symbol: str) fmp_py.models.valuation.DiscountedCashFlow
Calculates the discounted cash flow (DCF) for a given symbol.
Parameters: symbol (str): The symbol of the stock.
Returns: DiscountedCashFlow: An object containing the DCF information.
Raises: ValueError: If no data is found in the API response.
- company_rating(symbol: str) fmp_py.models.valuation.CompanyRating
Retrieves the rating information for a given company symbol.
- Parameters:
symbol (str) – The symbol of the company.
- Returns:
An object containing the rating information for the company.
- Return type:
- Raises:
ValueError – If no data is found in the API response.