¿ªÔÆÌåÓý

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

Connectivity between IB and Trader Workstation has been lost


 

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.


 

Probably you're catching an every-day hour of server maintenance
05:45 - 06:45 CET in Europe


 

Thanks Mikhail, that's very helpful to know about.


Stuart Cracraft
 

Bummer. Wish it had auto-restart past those or through those. Seems odd.

On Mar 1, 2021, at 3:01 AM, Mikhail Ershov <misha-ershov@...> wrote:

Probably you're catching an every-day hour of server maintenance
05:45 - 06:45 CET in Europe


Nick
 

This is the daily IB server restart, there is nothing you can do about it.

The messages tell you when it happens. There is also a message (1101) that tells you that subscriptions were lost and you have to resubscribe.

It's unbelievable that they told you they don't know what this is. The server restart has been there since the beginning.

On 3/1/2021 4:13 AM, jmgwalker@... wrote:
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.


 

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.


 

¿ªÔÆÌåÓý

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.


 

I had the same problem since when I started using TWS, but it was not a major problem because after the temporary disconection TWS reconnected automatically. However, in the last two days something has changend. After I get disconnected a pop up winodow shows up giving me two possible options: "Re-Login" or "Exit TWS". To make TWS reconnect and corrertly work with my API systems I have to click on Re-login.
Clearly, since this happen at 5 a.m I am not awake and I am left disconnected until I wake up. Why is this happening and how can i solve it?
Thanks


 

¿ªÔÆÌåÓý

For API connectivity, does using IB Gateway instead of TWS ?solve these issues?


On Jan 21, 2022, at 8:34 AM, morrone.marco4 via groups.io <morrone.marco4@...> wrote:

?I had the same problem since when I started using TWS, but it was not a major problem because after the temporary disconection TWS reconnected automatically. However, in the last two days something has changend. After I get disconnected a pop up winodow shows up giving me two possible options: "Re-Login" or "Exit TWS". To make TWS reconnect and corrertly work with my API systems I have to click on Re-login.
Clearly, since this happen at 5 a.m I am not awake and I am left disconnected until I wake up. Why is this happening and how can i solve it?
Thanks


 

Hi Christophe,
Thanks for your answer. I haven't tried to use IB Gateway as I prefere to have a GUI so that I can act easily if my python script goes nuts


 

A few things you could check.

Which installer for TWS do you use? The the "regular" installer that automatically and frequently updates TWS to the next version, or the "offline installer" that requires manual installation of new versions?

I can't find the link right now, but IBKR recommends the "offline installer" versions of TWS/IBGW in case you use the "Auto Restart" feature. Otherwise, you might run into these relogin-failures when the auto-restart triggers an auto-update. "Stable" 981 and "latest" 10.12 versions have a pretty high update frequency lately, At least weekly.

Not sure what time zone you are in (e.g. what 5am means). But you should schedule the daily restarts well outside of the daily maintenance windows. We are restarting at 16:45 US/Central time and have not seen a failure in a year or two.

´³¨¹°ù²µ±ð²Ô