Skip to main content

price_performance

Price performance as a return, over different periods.

Examples

from openbb import obb
obb.etf.price_performance(symbol='QQQ', provider='fmp')
obb.etf.price_performance(symbol='SPY,QQQ,IWM,DJIA', provider='fmp')

Parameters

symbol: str | list[str]
Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio.


Returns

results: list[EtfPricePerformance]

Serializable results.

provider: Optional[Literal['finviz', 'fmp', 'intrinio']]

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.