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

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio.False

Returns

OBBject
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

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
one_dayfloatOne-day return.
wtdfloatWeek to date return.
one_weekfloatOne-week return.
mtdfloatMonth to date return.
one_monthfloatOne-month return.
qtdfloatQuarter to date return.
three_monthfloatThree-month return.
six_monthfloatSix-month return.
ytdfloatYear to date return.
one_yearfloatOne-year return.
two_yearfloatTwo-year return.
three_yearfloatThree-year return.
four_yearfloatFour-year
five_yearfloatFive-year return.
ten_yearfloatTen-year return.
maxfloatReturn from the beginning of the time series.