performance
Get price performance data for a given stock. This includes price changes for different time periods.
Examples
from openbb import obb
obb.equity.price.performance(symbol='AAPL', provider='fmp')
Parameters
- standard
- finviz
- fmp
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp.
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp.
symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp.
Returns
results: list[PricePerformance]
Serializable results.
provider: Optional[Literal['finviz', 'fmp']]
Provider name.
warnings: Optional[list[Warning_]]
list of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.
Data
- standard
- finviz
- fmp
symbol: str
Symbol representing the entity requested in the data.
one_day: float
One-day return.
wtd: float
Week to date return.
one_week: float
One-week return.
mtd: float
Month to date return.
one_month: float
One-month return.
qtd: float
Quarter to date return.
three_month: float
Three-month return.
six_month: float
Six-month return.
ytd: float
Year to date return.
one_year: float
One-year return.
two_year: float
Two-year return.
three_year: float
Three-year return.
four_year: float
Four-year
five_year: float
Five-year return.
ten_year: float
Ten-year return.
max: float
Return from the beginning of the time series.
symbol: str
The ticker symbol.
one_day: float
One-day return.
wtd: float
Week to date return.
one_week: float
One-week return.
mtd: float
Month to date return.
one_month: float
One-month return.
qtd: float
Quarter to date return.
three_month: float
Three-month return.
six_month: float
Six-month return.
ytd: float
Year to date return.
one_year: float
One-year return.
two_year: float
Two-year return.
three_year: float
Three-year return.
four_year: float
Four-year
five_year: float
Five-year return.
ten_year: float
Ten-year return.
max: float
Return from the beginning of the time series.
volatility_week: float
One-week realized volatility, as a normalized percent.
volatility_month: float
One-month realized volatility, as a normalized percent.
price: float
Last Price.
volume: float
Current volume.
average_volume: float
Average daily volume.
relative_volume: float
Relative volume as a ratio of current volume to average volume.
analyst_recommendation: float
The analyst consensus, on a scale of 1-5 where 1 is a buy and 5 is a sell.
symbol: str
Symbol representing the entity requested in the data.
one_day: float
One-day return.
wtd: float
Week to date return.
one_week: float
One-week return.
mtd: float
Month to date return.
one_month: float
One-month return.
qtd: float
Quarter to date return.
three_month: float
Three-month return.
six_month: float
Six-month return.
ytd: float
Year to date return.
one_year: float
One-year return.
two_year: float
Two-year return.
three_year: float
Three-year return.
four_year: float
Four-year
five_year: float
Five-year return.
ten_year: float
Ten-year return.
max: float
Return from the beginning of the time series.