As of version 0.28.0, this requires the ib_insync library. Although this document is about Interactive Brokers, you should read it carefully if you plan to use other brokers as it explains how to ...
The goal of the IB-insync library is to make working with the Trader Workstation API from Interactive Brokers as easy as possible. Python 3.6 or higher; A running TWS or IB Gateway application ...