开云体育

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

IBC version 3.15.0


 

开云体育

I’ve just released version 3.15.0 of IBC, which you’ll find in the usual place:

?

?

This release provides support for Auto-restart in TWS and Gateway, for TWS/Gateway versions starting with v1018. Auto-restart is not supported when used with earlier TWS/Gateway versions.

?

Note that:

  • with this update, the auto-restarted TWS/Gateway also runs under IBC
  • If you start TWS/Gateway using Task Scheduler on Windows, there are some additional considerations you need to take into account, so make sure you read the section in the User Guide on this topic

?

IMPORTANT You MUST deploy this release to use auto-restart in TWS/Gateway version 1018 and later. The easiest way to do this is to download the relevant zip file and extract the following changed files, overwriting the current ones. Note that some files may contain your own settings changes, and you will need to ensure these get carried forward: these files are in bold in the list below. The script files and config.ini contain significant changes to comments: copying the files afresh will ensure they are up-to-date. You should make a copy of your existing setup before extracting the new versions, so you can easily see what customisations you need to carry forward.

?

Note in particular the comments regarding the TWS_SETTINGS_PATH variable in the start scripts and the IbDir setting in config.ini.

?

All platforms:

?

IBC.jar

version

config.ini (IbAutoClosedown setting removed; TWS Auto-Logoff and Auto-Restart section replaces TWS Auto-Logoff section)

?

Windows only:

?

StartTWS.bat

StartGateway.bat

scripts\StartIBC.at

?

Linux & macOS:

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

scripts\ibcstart.sh

?

?

Richard

?


Peter Law
 

Hi Richard,

Thanks for this! I updated TWS & IBC- I encountered an auto restart file not found- is it my problem?

Best,
Peter

On Wed, Nov 30, 2022 at 7:43 PM Richard L King <rlking@...> wrote:

I’ve just released version 3.15.0 of IBC, which you’ll find in the usual place:

?

?

This release provides support for Auto-restart in TWS and Gateway, for TWS/Gateway versions starting with v1018. Auto-restart is not supported when used with earlier TWS/Gateway versions.

?

Note that:

  • with this update, the auto-restarted TWS/Gateway also runs under IBC
  • If you start TWS/Gateway using Task Scheduler on Windows, there are some additional considerations you need to take into account, so make sure you read the section in the User Guide on this topic

?

IMPORTANT You MUST deploy this release to use auto-restart in TWS/Gateway version 1018 and later. The easiest way to do this is to download the relevant zip file and extract the following changed files, overwriting the current ones. Note that some files may contain your own settings changes, and you will need to ensure these get carried forward: these files are in bold in the list below. The script files and config.ini contain significant changes to comments: copying the files afresh will ensure they are up-to-date. You should make a copy of your existing setup before extracting the new versions, so you can easily see what customisations you need to carry forward.

?

Note in particular the comments regarding the TWS_SETTINGS_PATH variable in the start scripts and the IbDir setting in config.ini.

?

All platforms:

?

IBC.jar

version

config.ini (IbAutoClosedown setting removed; TWS Auto-Logoff and Auto-Restart section replaces TWS Auto-Logoff section)

?

Windows only:

?

StartTWS.bat

StartGateway.bat

scripts\StartIBC.at

?

Linux & macOS:

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

scripts\ibcstart.sh

?

?

Richard

?


 

开云体育

No it’s not an error, it’s just an information message. It should be pretty clear if a message in the logfile relates to an error.

?

You can see such an error at 2022-11-30 21:26:29:870 in the logfile. It can’t find one of the TWS files that should be in the C:\Jts\1019\jars. In fact I can tell from the file that the following program files are missing from that folder:

?

C:\Jts\1019\jars\jts4launch-1019.jar

C:\Jts\1019\jars\jxbrowser-7.26.jar

C:\Jts\1019\jars\jxbrowser-swing-7.26.jar

C:\Jts\1019\jars\jxbrowser-win64-7.26.jar

C:\Jts\1019\jars\total-2020.jar

?

So that’s why the error message says that ‘TWS is not correctly installed.’. I’ve no idea how things could get into this state, but what you need to do is to re-install TWS 1019, and then all should be well.

?

Richard

?

?

?

From: [email protected] <[email protected]> On Behalf Of Peter Law
Sent: 30 November 2022 13:27
To: [email protected]
Subject: Re: [ibc] IBC version 3.15.0

?

Hi Richard,

?

Thanks for this! I updated TWS & IBC- I encountered an auto restart file not found- is it my problem?

Best,

Peter


Peter Law
 

Sure!

I reinstalled using 1020 and updated version in StartTWS.bat and working well again.

Thanks!

On Thu, Dec 1, 2022 at 1:35 AM Richard L King <rlking@...> wrote:

No it’s not an error, it’s just an information message. It should be pretty clear if a message in the logfile relates to an error.

?

You can see such an error at 2022-11-30 21:26:29:870 in the logfile. It can’t find one of the TWS files that should be in the C:\Jts\1019\jars. In fact I can tell from the file that the following program files are missing from that folder:

?

C:\Jts\1019\jars\jts4launch-1019.jar

C:\Jts\1019\jars\jxbrowser-7.26.jar

C:\Jts\1019\jars\jxbrowser-swing-7.26.jar

C:\Jts\1019\jars\jxbrowser-win64-7.26.jar

C:\Jts\1019\jars\total-2020.jar

?

So that’s why the error message says that ‘TWS is not correctly installed.’. I’ve no idea how things could get into this state, but what you need to do is to re-install TWS 1019, and then all should be well.

?

Richard

?

?

?

From: [email protected] <[email protected]> On Behalf Of Peter Law
Sent: 30 November 2022 13:27
To: [email protected]
Subject: Re: [ibc] IBC version 3.15.0

?

Hi Richard,

?

Thanks for this! I updated TWS & IBC- I encountered an auto restart file not found- is it my problem?

Best,

Peter


 

开云体育

I just want to point out that there’s a flaw in the scripts that might cause auto-restart to be unreliable, especially if running Gateway on Linux or macOS.

?

I’m working on a fix.

?

Richard


 

FWIW - I got an email that IB has extended the deadline to 5 Dec for mandatary 2FA. Some breathing room.


 

hi i run TWS using ibc315 and it works fine. however, when i try ibgateway, it isnt working. both tws and ibgateway are installed on the shared network drive rather in the home folder. the msg is that?Error: Neither tws.vmoptions nor ibgateway.vmoptions could be found but they are certainly found in the drive.?


 

开云体育

This line in gatewaystart_7496.sh is incorrect:

?

TWS_PATH=/mnt/efs/ibgateway/Jts/ibgateway

?

It should be:

?

TWS_PATH=/mnt/efs/ibgateway/Jts/

?

?

?

From: [email protected] <[email protected]> On Behalf Of gong@...
Sent: 19 February 2023 16:32
To: [email protected]
Subject: Re: [ibc] IBC version 3.15.0

?

hi i run TWS using ibc315 and it works fine. however, when i try ibgateway, it isnt working. both tws and ibgateway are installed on the shared network drive rather in the home folder. the msg is that?Error: Neither tws.vmoptions nor ibgateway.vmoptions could be found but they are certainly found in the drive.?


 

unfortunately doenst seem to work. see attached.


 

sorry heres the attachment. the error logs has the same missing options file.. although it is now in there as you can see:

[ec2-user@ip-172-31-35-164 chartsbacktest_D_20230202_zip]$ cd /mnt/efs/ibgateway/Jts/1021
[ec2-user@ip-172-31-35-164 1021]$ ls -l
total 48
drwxr-xr-x 2 ec2-user ec2-user? 6144 Feb 20 03:48 data
-rwxr-xr-x 1 ec2-user ec2-user 15008 Feb 15 04:25 ibgateway
lrwxrwxrwx 1 ec2-user ec2-user? ? 45 Feb 20 03:48 IB Gateway 10.21.desktop -> .install4j/install4j_je7c71-ibgateway.desktop
-rw-r--r-- 1 ec2-user ec2-user? ?895 Feb 20 03:51 ibgateway.vmoptions
drwxr-xr-x 2 ec2-user ec2-user? 6144 Feb 20 03:51 jars
-rwx------ 1 ec2-user ec2-user 14321 Feb 15 04:25 uninstall


 

开云体育

Oops, sorry, I told you the wrong thing. It should be:

?

TWS_PATH=/mnt/efs/Jts/

?

But it also looks like you’ve installed Gateway into a non-standard location. These ‘missing’ files should be in

?

/mnt/efs/Jts/ibgateway/1021

?

This is where they will be if you install Gateway to the default location offered by the installer. The scripts depend on Gateway being installed to that default. There is no good reason to put it anywhere else.

?

So I suggest you uninstall Gateway and reinstall to the default.

?

By the way, you don’t need to install both TWS and Gateway: both installers put the same files on the system, apart from the desktop link (which IBC doesn’t use).? They install to different locations, but the IBC scripts know about this and will find whichever one is there. The User Guide does actually tell you this.


 

1. i prefer not to have Jts in the root, and i cannot put it in home as there is limited size in the drive associated with home rather than the one mounted. is there absolutely no way to have it in /mnt/efs/ibgateway/ something?
2. yes i understand tWS and ibgateway is the same under the hood, however, ibgateway is smaller to run and takes up less system resources when it is running.?


 

i tried installing to the standard location as a test (really dont want it here). and it does not work either.

i know the error msg says it is an offline version but thats not true:? i downloaded it from?

https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh


 

开云体育

That installer is for Gateway 10.21 , but you’ve set :

?

TWS_MAJOR_VRSN=1019

?

Also you’ve got:

?

TWS_PATH=/home/ec2-user/jts/ibgateway

?

This is incorrect: there should be no mention of ibgateway in this setting. The folder that Gateway is installed in is jts, not jts/ibgateway.

?

Actually you can install in any folder, though I don’t encourage this. To do this, when you run the installer you can change the part of the path before jts/ibgateway/1021 to any folder you like. So for example you can tell the installer to install to:

?

/mnt/efs/jts/ibgateway/1021

?

But the TWS_PATH variable must be set to:

?

TWS_PATH=/mnt/efs/jts

?

?

?

From: [email protected] <[email protected]> On Behalf Of gong@...
Sent: 20 February 2023 12:27
To: [email protected]
Subject: Re: [ibc] IBC version 3.15.0

?

i tried installing to the standard location as a test (really dont want it here). and it does not work either.

i know the error msg says it is an offline version but thats not true:? i downloaded it from?