API cannot connect after a while?

When running my automated trading system I don't need the GUI which TWS offers. So, for that I don't use TWS but Gateway instead. Gateway doesn't need those regular restarts.
 
Are you sure?
I start Gateway on Sunday evening and let it run until the following Saturday morning. I use it in combination with IBC (IB Controller). I am not seeing any issues due to it disconnecting, but that may also be caused by how I use it.
 
I start Gateway on Sunday evening and let it run until the following Saturday morning. I use it in combination with IBC (IB Controller). I am not seeing any issues due to it disconnecting, but that may also be caused by how I use it.

Ah you have IBC preventing restarts? I'm pretty sure that gateway has a setting where it restarts daily under lock and exit but I'm not at the desk so can't check.
 
With Gateway version 976.

upload_2019-7-26_9-53-45.png
 
Well, I don't think that if there is a restart that it would be a complete "lock & exit". Because in such a case two factor authentication would be necessary and IBC can not take care of that (I have 2FA enabled).

I was looking at what IB themselves have to say about this topic. I came across the following text:
Both TWS and IBGW were designed to be restarted daily. This is necessary to perform functions such as re-downloading contract definitions in cases where contracts have been changed or new contracts have been added. Beginning in version 974+ both applications offer an autorestart feature that allows the application to restart daily without user intervention. With this option enabled, TWS or IBGW can potentially run from Sunday to Sunday without re-authenticating. After the nightly server reset on Saturday night it will be necessary to again enter security credentials.
Source: http://interactivebrokers.github.io/tws-api/initial_setup.html
My computer is using Ubuntu as OS and IB proposed version 9.72 as stable version, both for TWS and Gateway. So that is what I'm using.
 
Well, I don't think that if there is a restart that it would be a complete "lock & exit". Because in such a case two factor authentication would be necessary and IBC can not take care of that (I have 2FA enabled).

I was looking at what IB themselves have to say about this topic. I came across the following text:

Source: http://interactivebrokers.github.io/tws-api/initial_setup.html
My computer is using Ubuntu as OS and IB proposed version 9.72 as stable version, both for TWS and Gateway. So that is what I'm using.

OK that's why. For versions earlier than 974(?), IBC avoids the daily restart by changing the time, but it can't do that in later versions.

In later versions, the restart does not require authentication except once a week, but I manually authenticate on Sundays anyway.
 
Back
Top