gatewaystart.sh is opening two gateway windows
19
A little bit of background, my instance of IBC is installed on virtual machine which automatically opens an tmux session which has an env session ran within it. The reason I am doing this is because I want IBC to run in the background void of any windows on my local computer. I tried to run the gatewaystart.sh file on its own via ./gatewaystart.sh within this environment and still got two windows, indicating that the issue lies within this file. The second window only opens after I finish the dual authentication on my phone after successfully logging in. This leaves me with an operational instance and one which is simply on the login screen. I am unsure what to do. Any insight or potential solutions is much appreciated . P.S Apologies for the briefness of my last post. I attempted to elaborate here as much as I can.
|
Two IB Gateway Windows are Opening..
The sequence shows that the initial IB Gateway session opens a single window and prompts me to complete the dual authentication. Once I complete said authentication, then it logs me in on one of the gateway sessions and keeps the other session on the login screen. Any insight is much appreciated.
|
New IBS user
2
I'm having the hardest time trying to set up IBC on MacOS.I downloaded the .zip, created all the folders and saved the corresponding files in them (I used the default configuration described in the user guide) At first I had access right issues: Error: no execute permission for scripts in ${IBC_PATH}/scripts The command sudo chmod o+x *.sh */*.sh seems to have solved that issue. But now I get XXX-MBP:~ username$ -bash -inline -bash: -bash: command not found Just to be sure I'm doing things properly: I'm pasting the text in twsstartmacos.sh in the terminal, and new window opens with the above message Any help would be much appreciated
|
New error message
8
Just got a new error message pop up: java.util.concurrent.CompletionException: com.teamdev.jxbrowser.engine.MissingDependencyException: Missing dependencies have been detected: chromium => libnssutil3.so libnss3.so libgbm.so.1 libsmime3.so libnspr4.so Is that someting from IBC, or elsewhere? Thanks
|
Diagnozing why ibc is not launching after upgrading to 3.20
4
Hi all, I upgraded to ibc 3.20 by overwriting the files in the /opt/ibc folder via the unzip command. sudo unzip ~/s/IBCLinux-3.20.zip -d \ /opt/ibc Since then, ibc refuses to launch. There are no log entries therefore I do not know what to do. I have tested the integrity of the zip file and have even tried inflating the ibc.jar file. Both those tests have worked which means that ibc has been correctly downloaded. I did not change the configuration files in this release since no changes had to be made. I am running ibc on linux. What am I missing? Pranav
|
Removing Order Precautions
6
I keep getting order precaution messages for orders I'm placing through IBC. For example, if I put a limit price too far away from the current price, try to place too big of an order, etc (screenshot included). Is there some way that IBC can automatically click yes or make it so that these warnings don't pop up?
|
IBC 3.17.0 not using SecondFactorAuthenticationTimeout setting
2
Hello Richard! First I want to thank you for your excellent working IBC program! Now my problem: I have configured "SecondFactorAuthenticationTimeout=180", but in the log IBC says "If login has not completed, IBC will exit in 60 seconds". Why I am setting this long timeout: On my server I am starting several TWS instances and I do not have so much CPU power. So when they starting up all at once I see 100% CPU load which extends the startup time a lot. I found that IBC was complaining that the 2FA didn't finish in time so I increased the timeout to 3 Minutes which is really enough to startup all TWS instances. At least to do the login. I immediately accepted the 2FA requests when they popped up on the phones. So the 2Fa for all accounts was finished within 20..30 seconds after startup. For me it seems the setting is not used by IBC as the default of 60 Seconds is still used instead of the 180. PLS can you check if I am right or advice me which settings I need to modify to get a 3 minute timeout used by IBC. BR, Jasmin PS: I attached the Logfile if you want to check it on your own.
|
IBC 3.20.0
I¡¯ve just published release 3.20.0 of IBC to GitHub. Download the zip for your platform from here: Release 3.20.0 ¡¤ IbcAlpha/IBC (github.com) This Release contains the following fixes and enhancements: * Fixes problems that occur during auto-restart if the autorestart file contains invalid credentials. A cold restart is performed requiring full authentication. * Automatically handles the dialog that occurs, starting in TWS 10.30.nn, when the user invokes the keyboard shortcuts to refresh market data subscriptions or reset the account connection. Ditto when the RECONNECTDATA and RECONNECTACCOUNT commands are sent to IBC. * Uses the correct shortcut keycode, depending on platform, when processing RECONNECTDATA and RECONNECTACCOUNT commands (see #242). * Fixes issues with cold restart after detecting `Login Error` or `Login Failed` dialogs (see #264). There are no changes to script files. To upgrade to this Release, download the relevant zip file and extract the `IBC.jar` and `version` files, copying them over the current versions in your IBC installation folder. Then restart TWS/Gateway. Richard
|
Accessing the gateway from another system on my local network
13
Hi all, I need to access my ib gateway from another machine on my lan. I see a setting for trusted IP addresses in the ibc configuration file. Is it still the case that this setting applies only if the fixed setting is set to true? Pranav
|
IBC not able to authenticate after "Re-login is required"
8
I have been running TWS in paper trading mode using IBC for a while, last night I configured the TWS to autorestart, it did autorestart correctly as given in the attached log file, but after a few hours TWS threw a "Re-login is required" dialog, IBC tried to re-login but couldn't, and multiple re-logins attempts actually locked me out of the account asking to reset password. Can someone please explain why in the first place that re-login was required, and why IBC was not able to authenticate it? Below is attached the snippet of logs indicating above, and also is attached the complete log file. Thanks 2024-07-12 23:46:41:632 IBC: Found TWS main window 2024-07-12 23:46:41:633 IBC: Login has completed 2024-07-12 23:46:43:504 IBC: detected frame entitled: DU2368051 Interactive Brokers (Simulated Trading); event=Lost focus 2024-07-12 23:46:43:505 IBC: detected frame entitled: DU2368051 Interactive Brokers (Simulated Trading); event=Deactivated 2024-07-12 23:46:43:505 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Activated 2024-07-12 23:46:43:506 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Focused 2024-07-12 23:46:43:507 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Opened 2024-07-12 23:46:43:508 IBC: detected frame entitled: Login; event=Closed 2024-07-12 23:46:43:508 IBC: detected frame entitled: Login; event=Closed 2024-07-12 23:46:43:510 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Lost focus 2024-07-12 23:46:43:512 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Deactivated 2024-07-12 23:46:43:512 IBC: detected frame entitled: DU2368051 Interactive Brokers (Simulated Trading); event=Activated 2024-07-12 23:46:43:513 IBC: detected frame entitled: DU2368051 Interactive Brokers (Simulated Trading); event=Focused 2024-07-12 23:46:51:951 IBC: detected frame entitled: DU2368051 Interactive Brokers (Simulated Trading); event=Lost focus 2024-07-12 23:46:51:952 IBC: detected frame entitled: DU2368051 Interactive Brokers (Simulated Trading); event=Deactivated 2024-07-12 23:46:51:953 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Activated 2024-07-12 23:46:51:955 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Focused 2024-07-12 23:46:57:971 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=State changed 2024-07-13 03:28:45:991 IBC: detected frame entitled: Connecting to server...; event=Opened 2024-07-13 03:28:46:218 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Lost focus 2024-07-13 03:28:46:219 IBC: detected frame entitled: Dow Jones Today's Top Ten; event=Deactivated 2024-07-13 03:28:46:220 IBC: detected frame entitled: Connecting to server...; event=Activated 2024-07-13 03:28:46:221 IBC: detected frame entitled: Connecting to server...; event=Focused 2024-07-13 06:40:46:237 IBC: detected dialog entitled: Re-login is required; event=Opened 2024-07-13 06:40:46:238 IBC: Re-login to session 2024-07-13 06:40:46:238 IBC: Click button: Re-login 2024-07-13 06:40:46:386 IBC: detected frame entitled: Attempt 163: Authenticating...; event=Lost focus 2024-07-13 06:40:46:386 IBC: detected frame entitled: Attempt 163: Authenticating...; event=Deactivated 2024-07-13 06:40:46:386 IBC: detected dialog entitled: Re-login is required; event=Activated 2024-07-13 06:40:46:402 IBC: detected dialog entitled: Re-login is required; event=Focused 2024-07-13 06:40:46:430 IBC: detected dialog entitled: Re-login is required; event=Lost focus 2024-07-13 06:40:46:430 IBC: detected dialog entitled: Re-login is required; event=Deactivated 2024-07-13 06:40:46:431 IBC: detected dialog entitled: Re-login is required; event=Closed 2024-07-13 06:40:46:431 IBC: detected frame entitled: Attempt 163: Authenticating...; event=Activated 2024-07-13 06:40:46:432 IBC: detected frame entitled: Attempt 163: Authenticating...; event=Focused 2024-07-13 06:40:46:612 IBC: detected frame entitled: Attempt 163: server error, will retry in seconds...; event=Lost focus 2024-07-13 06:40:46:612 IBC: detected frame entitled: Attempt 163: ser
|
Auto-login + TOTP feature?
2
Hello, Thanks for developing and maintaining IBC! Given IBKR¡¯s recent secure login documentation update for mobile authenticators (Mobile Authenticator ), are there any plans to update IBC to be able to automatically enter a one time password like with the user name/password for gateway? Or I guess going slightly further, incorporating a TOTP feature in IBC? Thanks! Justin
|
Auto Restart error
4
Hi there, I'm testing IBC on paper for the first time. This morning TWS had failed to login and I was presented with a dialog box on the login window. I'm not sure where I am going wrong. Log attached. Any help would be much appreciated.
|
IBC 3.19.0
3
I¡¯ve just published release 3.19.0 of IBC to GitHub. Download the zip for your platform from here: https://github.com/IbcAlpha/IBC/releases/tag/3.19.0 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: there is a revised Task Scheduler template for Windows, to ensure that IBC is automatically restarted if it is closed for any reason a Cold Restart mechanism has been introduced. This provides an easy way to ensure compliance with IBKR's requirement that TWS/Gateway be fully logged off at some point on Sundays. See the notes for the new ColdRestartTime setting in config.ini the User Guide has been updated to include information about IBC's command server sample scripts have been provided to enable easy use of IBC's command server The recommended procedure for installing this release is: Rename your existing IBC folder, for example to IBC-old, so you can easily revert to it if need be. Create a new IBC folder. Extract the contents of the zip file as described in the User Guide. Update the config.ini and scripts as required. Note that the top-level start scripts have not changed, so you can copy those back from the renamed IBC folder to the new IBC folder rather than update the new copies. These are: StartTWS.bat StartGateway.bat twsstart.sh gatewaystart.sh twsstartmacos.sh gatewaystartmacos.sh Richard
|
Starting TWS live and paper simultaneously
4
There was a time when I could start two instances of the TWS (one in paper mode and one for live trading) simultaneously with IBC without problems. At some point this stopped working. When I have start my live session and then try to start the additional paper session the IBC window just opens and closes quickly. Can this still be done somehow?
|
How to turn off 2FA
6
Hey, I am trying to get a trading algorithm to work with IB Gateway but keep running into the issue that I need to use 2FA through my phone to log in. I'm sure you guys already know about this issue really well, is there some sort of solution? I found this in the IBC docs but can't seem to find this setting anywhere: Please note that IBC cannot automatically complete your login if Interactive Brokers have given you a card or device that you must use during login. IBC can still enter your username and password, but you will have to type in the relevant code, or use the IBKR Mobile app to complete the login. You can request Interactive Brokers (via your Account Management page on their website) to relax this requirement when logging in to TWS or Gateway, but you will lose certain guarantees should you suffer losses as a result of your account being compromised. Any ideas?
|
How to run gateway for one week at a time
I heard that IB Gateway only needs to log in once per week, but I can't find the settings anywhere to accomplish that. Any ideas how to set up IB Gateway so that it doesn't log out every day, and instead I only have to log in once per week?
|
Strange problem
12
I have been using IBC for years without problem but now I'm a little bit clueless. Last night my PC crashed. Since then IBC does no longer fill in my credentials. When I start startTWS.bat the login window pops up and I have to enter my username and password manually. Afterwards everything seems to work as usual. I have reinstalled IBC and updated to 3.19 but the problem is unchanged. Any idea what might cause this problem? Thanks in advance!
|
Gateway Position
6
Is there any way to specify the default IB Gateway main window position to start on a different monitor?
|
redirect operator no longer works after switching from tws to ibgateway
2
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
|
TWS freezes several times a day
4
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.
|