ib-api-reloaded / ib_async

Python sync/async framework for Interactive Brokers API (replaces ib_insync)
BSD 2-Clause "Simplified" License
223 stars 37 forks source link

Error 1100, reqId -1: Connectivity between IBKR and Trader Workstation has been lost. #6

Closed MrBolt177 closed 2 months ago

MrBolt177 commented 2 months ago

Hi, all I'm just struggled and can't understand what happens. So, when I try to call ib.reqTickers or ib.qualifyContracts it throws an error: "Error 1100, reqId -1: Connectivity between IBKR and Trader Workstation has been lost." and I see that there are attempts to connect to TWS like from another device and there is like a conflict and that's it.

This is the code. `from ib_async import * ib = IB() ib.connect('127.0.0.1', 7496, clientId=15) ib.reqMarketDataType(marketDataType=1)

tickers = ib.reqTickers(*contracts_opt)`

MrBolt177 commented 2 months ago

My bad, wrong structure of contracts_opt