Skip to main content

consensus

Get consensus price target and recommendation.

Examples​

from openbb import obb
obb.equity.estimates.consensus(symbol='AAPL', provider='fmp')
obb.equity.estimates.consensus(symbol='AAPL,MSFT', provider='yfinance')

Parameters​

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): fmp, intrinio, tmx, yfinance.NoneTrue
providerLiteral['fmp', 'intrinio', 'tmx', 'yfinance']The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: fmp, intrinio, tmx, yfinance.NoneTrue

Returns​

OBBject
results : List[PriceTargetConsensus]
Serializable results.

provider : Optional[Literal['fmp', 'intrinio', '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.
namestrThe company name
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.