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
- standard
- finviz
- fmp
- intrinio
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | Union[str, List[str]] | Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio. | False |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | Union[str, List[str]] | Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio. | False |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | Union[str, List[str]] | Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio. | False |
Name | Type | Description | Default | Optional |
---|---|---|---|---|
symbol | Union[str, List[str]] | Symbol to get data for. Multiple items allowed for provider(s): finviz, fmp, intrinio. | False | |
return_type | Literal['trailing', 'calendar'] | The type of returns to return, a trailing or calendar window. | trailing | True |
adjustment | Literal['splits_only', 'splits_and_dividends'] | The adjustment factor, 'splits_only' will return pure price performance. | splits_and_dividends | True |
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
- standard
- finviz
- fmp
- intrinio
Name | Type | Description |
---|---|---|
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. |
Name | Type | Description |
---|---|---|
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. |
Name | Type | Description |
---|---|---|
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. |
Name | Type | Description |
---|---|---|
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. |
max_annualized | float | Annualized rate of return from inception. |
volatility_one_year | float | Trailing one-year annualized volatility. |
volatility_three_year | float | Trailing three-year annualized volatility. |
volatility_five_year | float | Trailing five-year annualized volatility. |
volume | int | The trading volume. |
volume_avg_30 | float | The one-month average daily volume. |
volume_avg_90 | float | The three-month average daily volume. |
volume_avg_180 | float | The six-month average daily volume. |
beta | float | Beta compared to the S&P 500. |
nav | float | Net asset value per share. |
year_high | float | The 52-week high price. |
year_low | float | The 52-week low price. |
market_cap | float | The market capitalization. |
shares_outstanding | int | The number of shares outstanding. |
updated | date | The date of the data. |