fmp_py.fmp_price_targets

Classes

FmpPriceTargets

Module Contents

class fmp_py.fmp_price_targets.FmpPriceTargets(api_key: str = os.getenv('FMP_API_KEY'))

Bases: fmp_py.fmp_base.FmpBase

price_target_consensus(symbol: str) fmp_py.models.price_targets.PriceTargetConsensus

Retrieves the price target consensus for a given symbol.

Parameters:

symbol (str) – The symbol of the stock.

Returns:

An object containing the price target consensus information.

Return type:

PriceTargetConsensus

Raises:

ValueError – If no data is found for the specified parameters.

price_target_summary(symbol: str) fmp_py.models.price_targets.PriceTargetSummary
price_target(symbol: str) pandas.DataFrame

Retrieves the price target data for a given symbol.

Parameters:

symbol (str) – The symbol for which to retrieve the price target data.

Returns:

A DataFrame containing the price target data, sorted by published date.

Return type:

pd.DataFrame

Raises:

ValueError – If no data is found for the given symbol.