Keyboard Shortcuts
Likes
- Ibcalpha
- Messages
Search
IBC 3.19.0
开云体育I’ve just published release 3.19.0 of IBC to GitHub. Download the zip for your platform from here: ? ? The main improvement in this release is the resolution of these issues: ? #142 Login failed - Server disconnected, please try again #251 Unknown Username.Password/Duplicate Session? #253 IBC unable to restart after 2.5 days of running. Happened multiple times. ? Other enhancements: ?
? The recommended procedure for installing this release is: ?
StartTWS.bat StartGateway.bat twsstart.sh gatewaystart.sh twsstartmacos.sh gatewaystartmacos.sh ? Richard ? |
Re: Request: Handle "Lock Trader Workstation after 30 minutes of Inactivity" dialog
Richard,
Thanks for your message. Indeed, updated the TWS to the latest standalone stable 10.19.2m gave me some blessing. Weird since I kept checking the latest self-updating TWS (10.29.1g as of now) and the "Never lock" option is still missing there. Point taken about messaging the CS team at IB, but they are still working on a bug I have reported last year. So they aren't that quick. Nevertheless, have a good day. whatrichme |
Re: Request: Handle "Lock Trader Workstation after 30 minutes of Inactivity" dialog
开云体育The thread you link to indicates that this was a temporary issue that has now been resolved. ? Please check to make sure that there really is still an issue for you. ? If so, it may be that IBKR are enforcing this in the Asia region, but not in Europe or the US (I’m in Europe and have no problem). ? It may be worth upgrading to the latest TWS which is 1029.1g I think (unless you’re using the stable version, in which case make sure you’ve got the latest version of that). ? Note that in general, once a ‘latest’ version has been superseded by an even later version, IBKR don’t continue to maintain the previous latest, so bugs in it are not fixed. In other words, if you’re using the ‘latest‘ version, you need to check regularly to make sure you really are still using the latest. Personally I would never consider using the ‘latest’ version for live trading, though I do use it for the paper trading account. ? I also want to emphasise that I’m reluctant to have IBC override TWS functionality unless it’s really necessary. It may be the case that the Honk Kong authorities have insisted that IBKR enforce this behaviour (if I remember correctly, this is what happened with mandatory 2FA: first Asia, then the rest of the world). ? So I suggest that someone should complain to IBKR about this issue (if indeed it still is an issue for some users), and find out what their motivation is. ? Richard ? ? From: [email protected] <[email protected]> On Behalf Of whatrichme via groups.io
Sent: Wednesday, May 22, 2024 2:38 AM To: [email protected] Subject: [ibc] Request: Handle "Lock Trader Workstation after 30 minutes of Inactivity" dialog ? Hello IBCalpha maintainer(s), ? I'm reaching out to request a new function in IBCalpha to handle the "Lock Trader Workstation after 30 minutes of Inactivity" dialog. This issue has been discussed in the TWS API community, and it seems that the "Never Lock Trader Workstation" option is no longer available in TWS version 10.26 and later. ? As a result, traders (from Hong Kong, and others seem to bump into this randomly) are forced to enter their password every 30 minutes to unlock their workstation. TWS won't interact at all during this time, which can be inconvenient and disrupt trading activities. I believe that a function to automatically handle this dialog would be a valuable addition to IBCalpha. ? The issue is described in more detail here: /g/twsapi/topic/tws_option_never_lock_trader/103503025 ? I would appreciate it if you could consider adding this functionality to IBCalpha. Thank you for your time and effort in maintaining this valuable tool. ? Best regards |
Request: Handle "Lock Trader Workstation after 30 minutes of Inactivity" dialog
Hello IBCalpha maintainer(s),
?
I'm reaching out to request a new function in IBCalpha to handle the "Lock Trader Workstation after 30 minutes of Inactivity" dialog. This issue has been discussed in the TWS API community, and it seems that the "Never Lock Trader Workstation" option is no longer available in TWS version 10.26 and later.
?
As a result, traders (from Hong Kong, and others seem to bump into this randomly) are forced to enter their password every 30 minutes to unlock their workstation. TWS won't interact at all during this time, which can be inconvenient and disrupt trading activities. I believe that a function to automatically handle this dialog would be a valuable addition to IBCalpha.
?
The issue is described in more detail here: /g/twsapi/topic/tws_option_never_lock_trader/103503025
?
I would appreciate it if you could consider adding this functionality to IBCalpha. Thank you for your time and effort in maintaining this valuable tool.
?
Best regards
whatrichme |
Re: redirect operator no longer works after switching from tws to ibgateway
Thread moved to the tws page: /g/twsapi/topic/data_logger_no_longer_works/106226204
I apologize for cross posting! |
redirect operator no longer works after switching from tws to ibgateway
I had a cron file that worked beautifully for a long time
TWS_LIVE_PORT=7496 SHELL=/bin/bash 20 9 * * 1-5 export DISPLAY=:1 && /bin/bash /opt/ibc/tws_live_start.sh 22 9 * * 1-5 cd ~/execution/samples/Cpp/data_logger/; ./data_logger_static 127.0.0.1 $TWS_LIVE_PORT &> SPY-STK.csv? This would write a bunch of data to SPY-STK.csv After not changing the program at all and not recompiling it, I figured this would work after making the switch to ibgateway GATEWAY_LIVE_PORT=4001 SHELL=/bin/bash 20 9 * * 1-5 export DISPLAY=:1 && /bin/bash /opt/ibc/gateway_live_start.sh 22 9 * * 1-5 cd ~/execution/samples/Cpp/data_logger/; ./data_logger_static 127.0.0.1 $GATEWAY_LIVE_PORT &> SPY-STK.csv? I believe this is some IBC setting issue. I had to edit the new startup scripts, but I'm keeping the same config files that were used with TWS. Either that or there is some different type of behavior for how IBC treats ibgateway versus TWS. I can confirm that Ibgateway is on, the client app is connected, no data feed is reported broken by ibgateway, and that tech support at IBKR confirms they receive my data requests at exactly 9:22 eastern.? It's difficult to reproduce this behavior, too. I can manually type in that command, and it spits out data just fine to the console, without redirecting its output. Sometimes I can run it again from within cron, at a later time, and it writes just fine to SPY-STK.csv |
Re: Gateway Position
Jon B
Russ, If you happen to be on Linux, you should be able to use the DISPLAY environment variable to set which monitor is used.? If you're on Windows, I'm not aware of equivalent functionality.? But a Google search did turn up this possibility:? Cheers, Jon On Wed, Apr 24, 2024 at 4:19?PM reit_raider via <reit_raider=[email protected]> wrote: Thanks Richard, I appreciate the reply.? |
Re: Gateway Position
开云体育Unfortunately there is no easy way for something external to the program to tell a Java program where to start. It would be possible (and not difficult) to write a Windows program that would use the Windows API to get a handle to the Gateway window and reposition it. It might even be possible to do it with a VBS script. There is also a utility called cmdow (see ) which should do the job. ? Another possibility is to use the MinimiseMainWindow setting in IBC’s config.ini so that the Gateway window is actually not visible (and then if you need it you can just click on the taskbar icon). ? The real answer would be for IB to enhance Gateway to remember the last location it was started in, like TWS. I really can’t imagine why they haven’t already done this. ? Richard ? |
Re: Gateway Position
Thanks Richard, I appreciate the reply.?
It is when the daily restart occurs and I'm not at my pc that the Gateway blocks another Java (screen-scraping) application that I also can only manage to run on the primary monitor; as well as interrupting any OBS broadcast recording I got going on.? The TWS IBKR program seems to remember its last window position, but not the Gateway. I don't wish it to be your duty to produce a work around.? I was naively hoping IB Technical Support would offer an embarrassingly simple Java startup parameter that I could apply myself, but of course I haven't heard back from them. There has got to be some ini config or keyboard shortcut or registry setting that I can specify for a Java program to start where it is told, but I am too dumb to figure it out. Russ Ramsey |
Re: Gateway Position
开云体育Not that I’m aware of. There is a file called jts.ini which stores settings that are not related to any particular user, and this contains settings for the main window width and height, but not its location. ? Theoretically IBC should be able to relocate the Gateway main window. However there are issues that can arise, such as when attaching or removing the second monitor, changing the scaling or resolution of the monitors and so on. Nothing insoluble, but it means that it’s not just a simple case of calling a single Java function. ? So my initial reaction is that it’s probably just not worth my time and effort to pursue this, when it’s only a moment’s effort for the user to drag the window to the other monitor once per session. ? Feel free to try and convince me that this would be a significant benefit… ? Richard ? ? From: [email protected] <[email protected]> On Behalf Of reit_raider via groups.io
Sent: Wednesday, April 24, 2024 12:59 AM To: [email protected] Subject: [ibc] Gateway Position ? Is there any way to specify the default IB Gateway main window position to start on a different monitor? |
Re: TWS freezes several times a day
regarding config.ini, 'manual' is the default (see below), so I never changed it, and I don't see any pop-up window other than the login / authentication page.? It says it is recommended to set to 'reject', but how do I configure which IP addresses can connect to the API in TWS's configuration page? Thanks.
# If set to 'accept', IBC automatically accepts incoming
# API connection dialogs. If set to 'reject', IBC
# automatically rejects incoming API connection dialogs. If
# set to 'manual', the user must decide whether to accept or reject
# incoming API connection dialogs. The default is 'manual'.
# NB: it is recommended to set this to 'reject', and to explicitly
# configure which IP addresses can connect to the API in TWS's API
# configuration page, as this is much more secure (in this case, no
# incoming API connection dialogs will occur for those IP addresses).
?
AcceptIncomingConnectionAction=manual |
Re: TWS freezes several times a day
Using Build 10.23.2a of TWS I also experienced freezing on Windows. I simply opened a chart and the whole TWS froze. But I don't think this issue is connected to IBC. Maybe we should?increase the?heap size at startup? Zsolt On Fri, Apr 12, 2024 at 10:49?AM Richard L King <rlking@...> wrote:
--
?dv, Zsolt |
Re: TWS freezes several times a day
开云体育Well, the log file looks perfectly normal. Since you haven’t given any information about what you mean by TWS freezing, or the circumstances when it occurs, there’s really nothing I can do. ? If the TWS user interface freezes, there is nothing at all that IBC can do about it. ? And if you restart TWS, then full login with 2FA is mandatory. Every time. That is IBKR policy and again there’s nothing IBC can do about it. ? You need to find out what’s causing the freezing. I can’t help with that either. ? Having said all that, I notice something in your logfile that’s almost certainly not correct. You have AcceptIncomingConnectionAction=manual in your config.ini. Is this really what you want? It means that any time something tries to connect to the API, a pop-up window will be displayed and you have to manually accept the connection.. Until you accept it, the API client that is trying to connect will not be able to proceed. Perhaps that’s what is happening? From the API client’s point of view it looks like TWS is not responding, whereas in reality it’s just waiting for you to do something. (However I don’t see any evidence of this in the logfile.) Read the comments in config.ini for this setting for further advice on this. ? So report your problem to IBKR with as much information about the circumstances as possible. ? ? From: [email protected] <[email protected]> On Behalf Of linkblock123
Sent: Thursday, April 11, 2024 11:08 PM To: [email protected] Subject: [ibc] TWS freezes several times a day ? Hi my tws live account freezes several times a day and requires my phone to authenticate in order to re-start, this is quite annoying when you want to run automated algorithmic trading.? Attached is the IBC log file.? Any solution for this?? Thanks. |
Re: tws daily autologoff
开云体育Yes. The very first paragraph of the User Guide tells you about it. ? From: [email protected] <[email protected]> On Behalf Of kng180@...
Sent: Thursday, April 4, 2024 3:36 AM To: [email protected] Subject: [ibc] tws daily autologoff ? My tws version is 1028, it logoffs itself daily instead of restarting it, it there any setting in config.ini yo deal with it? |
Re: Unable to make private static javax.swing.UIManager$LAFState
开云体育By the way, I noticed that you said “running start_tws.bat”. But IBC doesn’t have a .bat file of that name. Did you mean StartTWS.bat? Or is this another .bat file from somewhere else? |