how to connect to two instances of TWS or IBG from a python script on the same device?
I have multiple IB accounts, both linked and unlinked ones. I want to be able to trade on two different accounts simultaneously from the same script in Jupyter Notebook, which requires opening two difference instances of IBG or TWS. But how do you make the script to recognize and distinguish between the two instances?