There is also an example of a script in the project (GapRunnerScript) which constantly bets on the price gap
The main difference is that the functions for working with bets (create, modify, cancel an order) have become synchronous. Functions return a result that can be processed.