How do you take back-tested code written using the zipline API and convert that into forward-testing code using the IB API (or better yet ib-insync API)? It seems like you would have to completely re-write your code from scratch (time-consuming) and introduce a ton of errors by doing so. Ideally, you would write your algo, backtest it, adjust it, and when you are satisfied with backtest performance, take the same code and forward test it. In other words, not use two separate scripts (one to back-test and one to forward-test), just use one.