¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Connectivity between IB and Trader Workstation has been lost


 

¿ªÔÆÌåÓý

IBC is irrelevant in this, and cannot do anything about it. TWS keeps running through the reset period, so as far as IBC is concerned everything is fine.

?

Even if your API program decides to somehow shut down TWS when this happens (for example by sending a STOP command to IBC via its command server), and then you restart TWS, it wouldn't make the lightest difference if the reset period is still in progress. During the reset period, which is usually actually pretty short, all bets are off. IB make this perfectly clear ¨C the suggestion that it is or should be illegal is simply bizarre. It would be nice if it were not so, but it is and there is nothing we can do about it. If it prevents you making important trades and causes missed opportunities, then find another broker¡­

?

For what it's worth, I actually configure my TWS to auto-shutdown just before the UK reset period and then restart a few minutes later. I still get 1100s and the other related 'error' messages, but I just deal with them, resubscribing to market data if need be.

?

Richard

?

?

From: [email protected] <[email protected]> On Behalf Of Bruce B
Sent: 01 March 2021 16:46
To: [email protected]
Subject: Re: [TWS API] Connectivity between IB and Trader Workstation has been lost

?

It is a total mess between 12am to 1am EST which corresponds to your GMT timezone.

?

All sorts of wired behaviour happens at this hour. It is definitely not a clean maintenance window. You are not alone. I know exactly what you mean with missed opportunities around those hours. I think this should be or is illegal. But that's just my opinion.

?

Maybe IBC has a flag to restart multiple times with this error or at this hour. That still may not give you connectivity but may connect you faster if there is a delay in connection attempt by TWS.

?

- Bruce

?

On Mon, Mar 1, 2021, 4:34 AM <jmgwalker@...> wrote:

Hi all,

I was hoping someone here might have seen this error message before and know what to do. I've been in contact with the IB API team, but they don't know what's causing it.

At about 5.30am GMT every day my TWS loses connection to the IB servers. The TWS displays a message that it is trying to reconnect to the IB servers, which takes several minutes and attempts. My TWS restart is scheduled for 9.45pm so it's not that.

While this is happening I get the following error repeatedly from the API:

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

Until connection is restored and I get this message:

Error 1102, reqId -1: Connectivity between IB and Trader Workstation has been restored - data maintained. All data farms are connected: cashfarm; euhmds; cashhmds; secdefeu.

The IB API team suggested that it could be my local network, or internet service provider. I confirmed this wasn't the case by running from a different machine on a different network.

They also suggested that it could be a server-side issue on their end and that I should monitor their servers (). I was able to ping their European server continuous through this issue.

I'm using stable release 978 of TWS.

It's a bit annoying because I have a trade that tries to execute at this time which can lead to either a lengthy delay in it being filled, or not being filled at all.

Any advice would be gratefully received. Thanks.

Join [email protected] to automatically receive all group messages.