Skip to main content

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

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

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.