load_candles_from_parquet#

API documentation for tradeexecutor.strategy.pandas_trader.alternative_market_data.load_candles_from_parquet Python function.

load_candles_from_parquet(file, column_map={'close': 'close', 'high': 'high', 'low': 'low', 'open': 'open', 'volume': 'volume'}, resample=None, identifier_column='pair_id', pair_id=None)[source]#

Loads OHLCV candle data from a Parquest file.

Designed to load Parquest compressed external data dumps, like ones from Binance and Kraken.

Returns:

Tuple (Original dataframe, processed candles dataframe, resampled time bucket, original time bucket) tuple

Parameters:
Return type:

Tuple[DataFrame, DataFrame, TimeBucket, TimeBucket]