Keyboard Shortcuts
Likes
Search
macOS difficulty setting up
I'm trying to set up IBC 3.18.0 on my macOS with TWS version 1019. Attached is what my directories looks like. I installed the offline version of TWS 10.19 for macOS but it's still saying I don't and it can't find the jars folder but it's in the directory I specified in the shell scripts.
This is what my log file looks like: TWS version = 1019
Program = TWS
Entry point = ibcalpha.ibc.IbcTws
--tws-path = ~/Applications
--tws-settings-path =?
--ibc-path = /opt/ibc
--ibc-ini = ~/ibc/config.ini
--mode =?
--java-path =?
--user =
--pw =
?
?
=========================== An error has occurred =============================
?
?
?
Error: Offline TWS/Gateway version 1019 is not installed: can't find jars folder
? ? ? ?Make sure you install the offline version of TWS/Gateway
? ? ? ?IBC does not work with the auto-updating TWS/Gateway Thanks. |
¿ªÔÆÌåÓýRead the notes for the TWS_MAJOR_VRSN variable in twsstartmacos.sh. It says this: ? #?? TWS_MAJOR_VRSN # #???? Specifies the major version number of TWS to be run. If you are #???? unsure of which version number to use, run TWS manually from the #???? icon on the desktop, then click Help > About Trader Workstation. In the #???? displayed information you'll see a line similar to this: # #?????? Build 10.19.1f, Oct 28, 2022 3:03:08 PM # #???? The major version number is 10.19. (Note that this is different from #???? the equivalent Windows and Linux settings because the macOS installer #???? includes the period in the install folder name). # #???? Do not include the rest of the version number in this setting. ? But you appear to have: ? TWS_MAJOR_VRSN=1019 ? Richard ? ? From: [email protected] <[email protected]> On Behalf Of blotterdavid@...
Sent: Thursday, September 21, 2023 3:45 PM To: [email protected] Subject: [ibc] macOS difficulty setting up ? I'm trying to set up IBC 3.18.0 on my macOS with TWS version 1019. Attached is what my directories looks like. I installed the offline version of TWS 10.19 for macOS but it's still saying I don't and it can't find the jars folder but it's in the directory I specified in the shell scripts. TWS version = 1019 Program = TWS Entry point = ibcalpha.ibc.IbcTws --tws-path = ~/Applications --tws-settings-path =? --ibc-path = /opt/ibc --ibc-ini = ~/ibc/config.ini --mode =? --java-path =? --user = --pw = ? ? =========================== An error has occurred ============================= ? ? ? Error: Offline TWS/Gateway version 1019 is not installed: can't find jars folder ? ? ? ?Make sure you install the offline version of TWS/Gateway ? ? ? ?IBC does not work with the auto-updating TWS/Gateway |
¿ªÔÆÌåÓýYou can have the main TWS window minimized by using this setting in config.ini: ? MinimizeMainWindow=yes ? I can¡¯t guarantee that this will work consistently on macOS as I don¡¯t have access to a macOS machine. TWS has a habit of un-minimizing itself when certain things happen, and IBC has to try and catch that and re-minimize. It may well not catch all cases, since few people use this setting (and neither do I, so I¡¯d never notice unless someone tells me). ? On macOS, it¡¯s not possible to hide the terminal window which displays the information about the log file. The Linux and Windows scripts provide a means to do this, but this doesn¡¯t carry over to macOS. I dare say that there is technically a way to do it, but without being able to get my hands on a macOS computer I can¡¯t really figure it out (if anyone reading this has any ideas, please let me know). ? Having said that, there is actually a way to run without the terminal window, but it has some disadvantages. If you look at the IBC log file you¡¯ll see a line like this: ? Starting IBC with this command: ? The following line is a command that you can run directly from a command shell (presumably Bash), and it will run IBC and TWS in exactly the same way, but without the ¡®wrapping¡¯ provided by the normal shell script (if the command includes a -Drestart=¡ switch, remove it). Also redirect stdout and stderr to a file using normal redirection operators, to capture log output from IBC . ? The primary disadvantage is that some IBC features won¡¯t work properly: for example, autorestart will succeed in restarting TWS, but you¡¯ll have to re-authenticate via 2FA every time (for a live account). (Actually I need to verify that that last statement is really true: the 2FA automation probably should work provided you don¡¯t let the 2FA prompt time out on IBKR Mobile). ? Frankly I see no real benefit in trying to hide TWS from view. It won¡¯t save any resources. In my view, a much better approach is to run TWS in a virtual machine that¡¯s used for nothing else, and access it when needed via VNC or whatever remote access mechanisms macOS provides. Richard |