Skip to main content

consensus

Get consensus price target and recommendation.

Example​

from openbb import obb
obb.equity.estimates.consensus("AAPL,MSFT", provider="yfinance").to_df()

Parameters​

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): tmx, yfinance.False
providerLiteral['fmp', 'tmx', 'yfinance']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fmp' if there is no default.fmpTrue

Returns​

OBBject
results : List[PriceTargetConsensus]
Serializable results.

provider : Optional[Literal['fmp', 'tmx', 'yfinance']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data​

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
target_highfloatHigh target of the price target consensus.
target_lowfloatLow target of the price target consensus.
target_consensusfloatConsensus target of the price target consensus.
target_medianfloatMedian target of the price target consensus.