Skip to main content

performance

Price performance as a return, over different periods.

Example​

from openbb import obb
obb.equity.price.performance(symbol="AAPL")

Parameters​

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for.False
providerLiteral['fmp']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

Returns​

OBBject
results : List[PricePerformance]
Serializable results.

provider : Optional[Literal['fmp']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

metadata: Optional[Metadata]
Metadata info about the command execution.

Data​

NameTypeDescription
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.
three_yearfloatThree-year return.
five_yearfloatFive-year return.
ten_yearfloatTen-year return.
maxfloatReturn from the beginning of the time series.