1.6 KiB
Vendored
title, description, keywords
| title | description | keywords | |||||||
|---|---|---|---|---|---|---|---|---|---|
| vwap | Learn about the Volume Weighted Average Price (VWAP) and how it measures the average typical price by volume. Discover how it can be used with intraday charts to identify general direction. Explore Python examples using the OpenBB OBB package. |
|
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
The Volume Weighted Average Price.
Measures the average typical price by volume. It is typically used with intraday charts to identify general direction.
Parameters
data : List[Data]
List of data to be used for the calculation.
index : str, optional
Index column name to use with data, by default "date".
anchor : str, optional
Anchor period to use for the calculation, by default "D".
See Timeseries Offset Aliases below for additional options:
https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#timeseries-offset-aliases
offset : int, optional
Offset from the current period, by default 0.
Returns
OBBject[List[Data]] The calculated data.
Examples
from openbb import obb
stock_data = obb.equity.price.historical(symbol="TSLA", start_date="2023-01-01", provider="fmp")
vwap_data = obb.technical.vwap(data=stock_data.results,anchor="D",offset=0)
Parameters
This function does not take standardized parameters.
Returns
This function does not return a standardized model