¿ªÔÆÌåÓý

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

TWS: Your connection was lost. Would you like to re-login? Re-login Exit Application


 

I've been getting this TWS message.? I'm assuming it's not an API error.

Your connection was lost.
Would you like to re-login?
Re-login? Exit Application

All I have to do is click the Re-login button.?

But I can't bc I'm trading CL, GC and ES unattended (and sleeping Sunday night) 24X7, which means starting Sunday evening and running continuously til Fri at 5 pm EST.

Am I the only one getting this?? Am I the only one trading thru Sunday night?

I've received this post almost always Sunday night/Monday morning, BOTH Paper and Prod accounts.

I've checked and the last time I can find that this was addressed was post? #34058 Aug 2015

Richard, is there any to investigate this again to see if IBC can help?

Josh - any input from IBKR?? I can't take a chance on trading this until it's solved.

WIN7
IBC320
TWS build 963.3g

Thanks, as always,
Lou Dudka


 

Confirmed that I also encounter this problem almost always on Sunday night, occasionally on Saturday night. It is annoying. I wonder if a manual weekly, perhaps Saturday morning, restart of IB Gateway would avoid the problem ?


 

This is almost certainly the once a week IB initiated forced shutdown. God only knows why they force a reconnect, but it's been discussed here before and that was the general conclusion. IBC might be able to help you out here, depending on whether or not you use 2 factor auth.

Best wishes,

M


On Thu, 29 Aug 2019 at 04:34, Dave S. <dave7219@...> wrote:
Confirmed that I also encounter this problem almost always on Sunday night, occasionally on Saturday night. It is annoying. I wonder if a manual weekly, perhaps Saturday morning, restart of IB Gateway would avoid the problem ?



--
(T) +44 (0) 131 2202413 ?? (M) +44 (0) 7528 551604 ? (W)
Gulfstream Software - Winner Risk Management Awards 2010
This message is subject to :


 

Perhaps this might help you.?
Since that situation happened to me as well, I wanted to find the cause so I can avoid it. Here what I've found:

Sunday came, so you log into IB through TWS or Gateway, BUT once you've logged, you should avoid accessing your account either by phone or in the website, even if you think that turning off data it'll be good enough to not interfere with your working apps ( tws or gateway ).? I've realized after many re-login situations, that whenever I didn't do any additional login into my account, the problem didn't pop any longer.

I hope it can help


 

IB Gateway/TWS are designed to be able to run Sunday-Sunday without re-authenticating. If you need to login to Client Portal or another trading application during that time you just need to use a different live username. Otherwise, if you login with the same username in a different application, the session token will expire and IB Gateway/TWS will present the "Re-Login" dialogue box after the next disconnection (such as the server reset).?


 

Is that right?

I find that TWS and IB Gateway (latest and beta versions) both terminate daily at 11:45PM and, though TWS has an "Auto restart" option under Configuration->Lock and Exit, IB Gateway does not.

I remember being able to run the IB Gateway from Sunday to Sunday in the past but not anymore. Now, it looks like it needs to be restarted and reauthenticated daily. Is this correct?


 

The new versions restart daily on their own??at the set time?(without logging in again) and only require you to re-authenticate after the next Saturday night reset.?


 

Josh,

Why? Can they not stay running??

It's not security because they don't reauthenticate, so there's something else going on.

Best wishes,


M

On Thu, 29 Aug 2019, 23:46 Josh via Groups.Io, <jb201448=[email protected]> wrote:
The new versions restart daily on their own??at the set time?(without logging in again) and only require you to re-authenticate after the next Saturday night reset.?


 

TWS didn't force a re-login this weekend, Sunday or Monday (US holiday) night.

Was it luck or did IBKR change something?

Thanks, as always,
Lou Dudka


 

TWS/IB Gateway was originally designed to be restarted daily, and faces limitations if its not. A majority of users trade manually, and don't mind a daily restart.?
Its possible there was special maintenance going on last week, but in general it should be expected to login at least once per week.?


 

Hi Josh,

This week on Sunday it did ask for the "Button" to be pressed to reconnect.

But, if my memory serves me, it was during the day on Sunday, not in the middle of the night.

Don't know if IB changed anything.? Hope they did, I can live with a Sunday during-the-day re-login and machine trade thru the night.

One more Sunday with the reconnect during the day and IB (and me, of course) can make a bit of money on my Sunday night futures trades!

Thanks, as always,
Lou Duidka


 

On Sundays if you don't relogin, you'll have to at the next disconnection. At latest, that will be the Sunday night server reset, but it could be earlier if you disconnect before then.


 

Josh,

Thanks for the followup,

I'm sure you said it before and I wasn't paying much attention - gettin' old ain't fun ,...

That might have been what happened.

I'll definitely log off and on Sunday this weekend and let you know.

Thanks, as always,
Lou Dudka


 

Interesting, IBKR forced the re-login Sat night/ Sun morning.

Wish they'd make up their minds, but if this is all it takes, it's OK.

Going to let it ride without reconnecting, since Josh said it had to be done only once a week.

Thanks, as always,
Lou Dudka


 

OK, ran thru Sun night / Mon morning with no re-connect button.? Looks like Josh was right.

Hope it stays this way.

Thanks, as always,
Lou Dudka


 

This week I got hit with the re-connect button on *monday night*.? This is unusual ... it is normally saturday night or sunday night for me.? Anybody else ?


 

Dave - did you log off and on over the weekend?

Thanks, as always,
Lou Dudka


 

No I did not.? Will build a step in that step into the work plan, likely after the close on fridays.


 

Dave,

Josh did say weekends, don't know if Friday "qualifies."

I'm going to do mine Sunday evening (maybe 7 pm).

Thanks, as always,
Lou Dudka


 

Ok, rebooted my Win7 on Saturday, so I just logged into TWS then.? Didn't bother to do it on Sunday.

Happened to be up tonight and got Re-Login button for prod at about 12:15 AM and test about 12:30 AM.

Josh,?? I thought if we logged in and out over the weekend we wouldn't get this?? Does it have to be Sunday night?

Thanks, as always,
Lou Dudka