Is it possible to resample the data and rebalance for eg every 15 mins?

Is it possible to resample the data from 1 min to 15 mins and rebalance every 15 mins?



Please use code attached to make a simple example.

Hi Jane,



You can resample the data using the resample method of the Pandas library. For rebalancing every 15 mins, you can use the following piece of code. You can also refer to this documentation for the same. 

schedule_function(rebalance,
                  date_rules.every_day(),
                  time_rules.every_nth_minute(minutes=15))

Hope this helps!



Thanks,

Akshay

Thank you!



Namaste.