resample_single_pair#

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

resample_single_pair(df, bucket)[source]#

Upsample a single pair DataFrame to a lower time bucket.

  • Resample in OHLCV manner

  • Forward fill any gaps in data

Warning

Calling this function for a multipair data will corrupt the data. Use resample_multi_pair() instead.

Parameters:
Return type:

DataFrame