Price Target Consensus
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
PriceTargetConsensus | PriceTargetConsensusQueryParams | PriceTargetConsensusData |
Import Statement
from openbb_core.provider.standard_models.price_target_consensus import (
PriceTargetConsensusData,
PriceTargetConsensusQueryParams,
)
Parameters
- Standard
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| symbol | Union[str, List[str]] | Symbol to get data for. | False | |
| provider | Literal['fmp', '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. | "fmp" | True |
Data
- Standard
- yfinance
| Name | Type | Description |
|---|---|---|
| provider | Literal['openbb'] | The data provider for the data. |
| symbol | str | Symbol representing the entity requested in the data. |
| target_high | float | High target of the price target consensus. |
| target_low | float | Low target of the price target consensus. |
| target_consensus | float | Consensus target of the price target consensus. |
| target_median | float | Median target of the price target consensus. |
| Name | Type | Description |
|---|---|---|
| provider | Literal['openbb'] | The data provider for the data. |
| symbol | str | Symbol representing the entity requested in the data. |
| target_high | float | High target of the price target consensus. |
| target_low | float | Low target of the price target consensus. |
| target_consensus | float | Consensus target of the price target consensus. |
| target_median | float | Median target of the price target consensus. |
| recommendation | str | Recommendation - buy, sell, etc. |
| recommendation_mean | float | Mean recommendation score where 1 is strong buy and 5 is strong sell. |
| number_of_analysts | int | Number of analysts providing opinions. |
| current_price | float | Current price of the stock. |
| currency | str | Currency the stock is priced in. |