IBKR automated rebalancing?

Have a look at the first link in my post here: Comparing Futures Total Return to Index Total Return for S&P 500 from 1988 to 2022

The guy automates his trading on IBKR. It’s open-source.