agent0.chainsync.dashboard.build_ohlcv
Builds the ohlcv dataframe for the dashboard.
Functions
|
Builds the ohlcv dataframe ready to be plot |
Module Contents
- agent0.chainsync.dashboard.build_ohlcv.build_ohlcv(pool_analysis: pandas.DataFrame, freq: str | None = None) pandas.DataFrame
Builds the ohlcv dataframe ready to be plot
- Parameters:
pool_analysis (pd.DataFrame) – The pool analysis object from get_pool_anlysis
freq (str | None) – The grouping frequency for the ohlcv plot. See https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases for accepted values If none, defaults to 5min
- Returns:
The ready to plot dataframe for ohlcv
- Return type:
pd.DataFrame