Resampling data

how should i modify the following code to resample 3 min candle data to 15 min candle data.

def get_Fractals(self, hist_data):
hist_data = self.get_historical_data(instrument)
hist_data_15min = hist_data.resample(‘15Min’).agg({‘open’: ‘first’, ‘high’: ‘max’, ‘low’: ‘min’, ‘close’: ‘last’})

i need this code to use in python build …

Hi @Kiran_Thomas,

If you want to convert x-minute data in a pandas dataframe into y-minute data, you will have to implement pandas operations to achieve this at your end itself.

Multi-candle functionality is not available at our end currently.


1 Like