aggregate_ohlcv#
API documentation for tradingstrategy.utils.aggregate_ohlcv Python module in Trading Strategy.
Module description#
Aggregated candles.
Create aggregated price OHLCV and liquidity candles across all available DEX trading pairs
See
aggregate_ohlcv()
for usage
Classes#
AggregateId(chain_id: int, base_token_symbol: str, base_token_address: str) |
Functions#
|
Builds an aggregates dataframe for trading data. |
|
Generate a dict of pairs that trade the same token. |
Calculate volume weighted average prices (vwap) on OHLCV. |
|
|
For each aggregated pair, identify them |