开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Auto restart not working 3
I'm running on a new computer (Windows 11, TWS 1033). I've taken a look at the dump file, but I don't really know how to analyze it. The last lines are (full dump attached): Check for 2FA dialog timed out Check for login dialog display timeout Check for restart call :GetAutoRestartOption Finding autorestart file INFO: Could not find files for the given pattern(s). autorestart file not found Check for cold restart Normal exit TWS finished at Thu 04/03/2025 20:00:06.66 IBC running TWS 1033 has finished at Thu 04/03/2025 20:00:06.67
Started by Frank Bell @ · Most recent @
Feature request: Show advanced order reject UI always
Hi all, Is it possible to toggle the option Show advanced order reject UI always from ibc? If not, is it worth adding the toggling of this option to ibc? I am thinking about people using docker besides my own accessibility use case which is co-incidental to ibc. <smile Pranav
Started by Pranav Lal @
TWS Paper Auto LOGON issue 4
I have configured autorestart within tws and it was working well for most of the week. This morning I saw a POPUP indicating "unknown or incorrect password", I did not screenshot it unfortunately. Needless to say, IBC was unable to login automatically. Does anyone have insight on how to fix this? Thank you.
Started by justinlane1979@... @ · Most recent @
port already in use 4
screenshots included now Van: rik dieltjens <rik_en_veronique1@...> Verzonden: woensdag 12 maart 2025 8:16 Aan: ibcalpha@groups.io <ibcalpha@groups.io> Onderwerp: FW: [ibc] port already in use Hi Richard, as mentioned yesterday I added some comments in my own logfile to see what happens after the restart. This morning I saw the same error message, and again twice the same instance : account -86 is open and normally reacting. The same account -86 is still (or again?) there, but the screen is grey and it does not respond to anything. You will find 2 screenshots, both with the grey screen. On the first my pointer is in the lower tab menu above the account -86, so the account number is shown. On the second, my pointer is above another account tab (7 tabs more to the left or to the right), showing the same account number. That's the best I could get to show you what I try to tell. My code in the background stops checking after 22:00 and does not start before 8:45 in the morning. The auto-restart is just before midnight. I took the screenshot this morning around 8:30. So the code did not do anything, which is confirmed by my logfile. (the code runs "/opt/ibc/twsstart4080.sh" every 5' during the day, from 8:45 untill 22:00 : as far as I know this will open the 4080 instance if not open yet, or do nothing if already open, please correct me if I'm wrong). If you can't think of any other reason, I will change the restart time and try to see what happens at that time. Thanks anyway, rik Van: rik dieltjens <rik_en_veronique1@...> Verzonden: dinsdag 11 maart 2025 16:18 Aan: ibcalpha@groups.io <ibcalpha@groups.io> Onderwerp: Re: [ibc] port already in use Thanks for your reaction, Richard. I have indeed running a code that is checking if some instance has been closed while it shouldn't. This also runs for many years now. I will add comment lines to my logfile to check if this code tries to start a new instance at some time where the ibc-log says that it is open already. Anyway, thanks for the tip. best regards rik Van: ibcalpha@groups.io <ibcalpha@groups.io> namens Richard L King <rlking@...> Verzonden: dinsdag 11 maart 2025 10:51 Aan: ibcalpha@groups.io <ibcalpha@groups.io> Onderwerp: Re: [ibc] port already in use rik As far as I can tell from the logfile, IBC is behaving fine. The restart does complete successfully, and then at 2025-03-11 08:40:09:452 the program shuts down: I presume this is because at this point you closed it manually, because it was displaying the ‘port already in use’ dialog? All the evidence points to there really being another instance configured with the same API port. When the first instance closes for restart at 2025-03-10 23:49:02, it really has shut down – there is no possibility that it’s still running. And yet you say ‘one instance (always the same) did not close as it should (it is still open, and does not react on anything)’. Can you get a screenshot showing this supposedly blocked instance, the new instance, and the error message together? What seems most likely to me is that the original instance has indeed shut down and restarted successfully (which is what the log shows), and another new instance has somehow been started and it is this one that is showing the error dialog. I have no idea why that might have happened: perhaps you are doing periodic restarts using Task Scheduler to catch cases where IBC/TWS has crashed, and this just happens to be at the same time as the auto-restart? So from my point of view I can’t see anything wrong here: there doesn’t appear to be an IBC problem. However I do note that you’re running a rather old version of IBC, and I would encourage you to move to the latest version. Richard From: ibcalpha@groups.io <ibcalpha@groups.io> On Behalf Of rik . via groups.io Sent: 11 March 2025 08:03 To: ibcalpha@groups.io Subject: [ibc] port already in use Hello, I'm using ibc for years now, starting multipal instances on sunday or monday, and let them restart overnight until the weekend. Since a few weeks I'm getting the error "port already in use" (see printscreen) on the first res
Started by rik . @ · Most recent @
FW: [ibc] port already in use
Hi Richard, as mentioned yesterday I added some comments in my own logfile to see what happens after the restart. This morning I saw the same error message, and again twice the same instance : account -86 is open and normally reacting. The same account -86 is still (or again?) there, but the screen is grey and it does not respond to anything. You will find 2 screenshots, both with the grey screen. On the first my pointer is in the lower tab menu above the account -86, so the account number is shown. On the second, my pointer is above another account tab (7 tabs more to the left or to the right), showing the same account number. That's the best I could get to show you what I try to tell. My code in the background stops checking after 22:00 and does not start before 8:45 in the morning. The auto-restart is just before midnight. I took the screenshot this morning around 8:30. So the code did not do anything, which is confirmed by my logfile. (the code runs "/opt/ibc/twsstart4080.sh" every 5' during the day, from 8:45 untill 22:00 : as far as I know this will open the 4080 instance if not open yet, or do nothing if already open, please correct me if I'm wrong). If you can't think of any other reason, I will change the restart time and try to see what happens at that time. Thanks anyway, rik Van: rik dieltjens <rik_en_veronique1@...> Verzonden: dinsdag 11 maart 2025 16:18 Aan: ibcalpha@groups.io <ibcalpha@groups.io> Onderwerp: Re: [ibc] port already in use Thanks for your reaction, Richard. I have indeed running a code that is checking if some instance has been closed while it shouldn't. This also runs for many years now. I will add comment lines to my logfile to check if this code tries to start a new instance at some time where the ibc-log says that it is open already. Anyway, thanks for the tip. best regards rik Van: ibcalpha@groups.io <ibcalpha@groups.io> namens Richard L King <rlking@...> Verzonden: dinsdag 11 maart 2025 10:51 Aan: ibcalpha@groups.io <ibcalpha@groups.io> Onderwerp: Re: [ibc] port already in use rik As far as I can tell from the logfile, IBC is behaving fine. The restart does complete successfully, and then at 2025-03-11 08:40:09:452 the program shuts down: I presume this is because at this point you closed it manually, because it was displaying the ‘port already in use’ dialog? All the evidence points to there really being another instance configured with the same API port. When the first instance closes for restart at 2025-03-10 23:49:02, it really has shut down – there is no possibility that it’s still running. And yet you say ‘one instance (always the same) did not close as it should (it is still open, and does not react on anything)’. Can you get a screenshot showing this supposedly blocked instance, the new instance, and the error message together? What seems most likely to me is that the original instance has indeed shut down and restarted successfully (which is what the log shows), and another new instance has somehow been started and it is this one that is showing the error dialog. I have no idea why that might have happened: perhaps you are doing periodic restarts using Task Scheduler to catch cases where IBC/TWS has crashed, and this just happens to be at the same time as the auto-restart? So from my point of view I can’t see anything wrong here: there doesn’t appear to be an IBC problem. However I do note that you’re running a rather old version of IBC, and I would encourage you to move to the latest version. Richard From: ibcalpha@groups.io <ibcalpha@groups.io> On Behalf Of rik . via groups.io Sent: 11 March 2025 08:03 To: ibcalpha@groups.io Subject: [ibc] port already in use Hello, I'm using ibc for years now, starting multipal instances on sunday or monday, and let them restart overnight until the weekend. Since a few weeks I'm getting the error "port already in use" (see printscreen) on the first restart moment, so I see it on monday or tuesday morning. This is because one instance (always the same) did not close as it should (it is still open, and does not react on anything). The new inst
Started by rik . @
IBC 3.21.2
I’ve just issued a new release of IBC. This is version 3.21.2. Find it here: https://github.com/IbcAlpha/IBC/releases/tag/3.21.2 This release fixes Issue #293, reported earlier today, which prevents use of the Trusted IP Address list in the Gateway. (TWS is not affected by this bug). To upgrade to this release from v3.21.1, just extract the IBC.jar and version files from the relevant zip and copy them into the folder where the IBC program files are stored. You only need to install this update if you run Gateway and need to adjust the list of Trusted IP Addresses in the Gateway Configuration dialog. Richard
Started by Richard L King @
port already in use 3
Hello, I'm using ibc for years now, starting multipal instances on sunday or monday, and let them restart overnight until the weekend. Since a few weeks I'm getting the error "port already in use" (see printscreen) on the first restart moment, so I see it on monday or tuesday morning. This is because one instance (always the same) did not close as it should (it is still open, and does not react on anything). The new instance opens well but cannot use the API port as it seems to be still in use by the blocked instance. The only thing I can do is close everything but the blocked instance, restart my pc and start all over again. This happens only after the first overnight restart. The rest of the week everything ngoes fine (until now...). I have no clue what or where to look for. The log is attached (this week I started on monday, so I saw the error this tuesday morning). Every help is welcome. Thanks, rik
Started by rik . @ · Most recent @
Set "Show Forex data in 1/10 pips" from config.ini 2
Hi! Is there anyway to set the "Show Forex data in 1/10 pips" checkbox from the config.ini? Best regards, Mattias
Started by @MattiasLindsjo @ · Most recent @
ERRORLEVEL = 1004 5
Hello, I am new to IBC and upon installing the latest version of IB GATEWAY, I am receiving this error: This log file is located at: C:\IBC\IBCWin-3.21.0\Logs\IBC-3.21.0_GATEWAY-1034_MONDAY.txt ================================================================================ Starting IBC version 3.21.0 on Wed 02/19/2025 at 6:51:24.52 'wmic' is not recognized as an internal or external command, operable program or batch file. Arguments: TWS version = 1034 Program = Gateway Entry point = ibcalpha.ibc.IbcGateway /TwsPath = C:\Jts\ibgateway\1034 /TwsSettingsPath = /IbcPath = C:\IBC\IBCWin-3.21.0 /Config = C:\Users\JJ\Documents\IBC\config.ini /Mode = /JavaPath = /User = /PW = /FIXUser = /FIXPW = =========================== An error has occurred ============================= Error: Offline TWS/Gateway version 1034 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
Started by justinlane1979@... @ · Most recent @
Help with jre 21 & BNC 3.20 26
Hi all, I’m currently trying to set up IB Gateway 10.30.1s with IBC 3.20.0 on my Raspberry Pi, using a custom Dockerfile based on Ubuntu 24.04 for running IB on my raspi (ARM64). ```FROM ubuntu:24.04 AS setup ENV IB_GATEWAY_VERSION=10.30.1s ENV IB_GATEWAY_RELEASE_CHANNEL=stable ENV IBC_VERSION=3.20.0 ``` For Java, I’m using an ARM-compatible version of the JDK from BellSoft: bellsoft-jre21.0.5+11-linux-aarch64. However, I’m encountering an issue when running the gateway. The log shows this error: ```java.lang.reflect.InaccessibleObjectException: Unable to make private static javax.swing.UIManager$LAFState javax.swing.UIManager.getLAFState() accessible: module java.desktop does not "opens javax.swing" to unnamed module @8f4ea7c``` it appears that the issue is related to IBC's interaction with Java's module system. Specifically, it seems to be a problem with access restrictions on Java’s ```javax.swing``` package, which is enforced by the java.desktop module in newer Java versions I’ve considered adding the following JVM argument to the ```ibgateway.vmoptions``` file: ```--add-opens java.desktop/javax.swing=ALL-UNNAMED``` This argument would open up the necessary parts of ```javax.swing``` to the unnamed module and may allow the gateway to function properly. At this point, I’m unsure whether the root cause is due to IBC not being fully compatible with Java 21 or if there is another configuration issue. Has anyone else faced this problem or have any advice on how to properly configure IBC with Java 21 in a Docker environment? Many thanks from Paris John
Started by Jonathan S @ · Most recent @
IBC 3.21.1
I’ve just released a new version of IBC, v3.21.1, which fixes the issues reported since the release of version 3.21.0, which were preventing autorestart from working correctly. You can find this release at: https://github.com/IbcAlpha/IBC/releases/tag/3.21.1 The only files that have changed are: `IBC.jar` `version` `scripts/ibcstart.sh` If you have previously installed version 3.21.0, all you need to do is extract these files from the relevant zip to the appropriate location. Richard
Started by Richard L King @
IBC 3.21.0 2
I have just released version 3.21.0 of IBC. You can find it on GitHub at: https://github.com/IbcAlpha/IBC/releases/tag/3.21.0 This release provides support for TWS/Gateway 1034 running on Linux. For this release, IBKR have updated the installer so that, on Linux, TWS and Gateway use the Azul Zulu Java 17 runtime environment rather than the Oracle 8 JRE used in previous releases. NB: TWS/Gateway 1034 on Linux will not work with previous releases of IBC. If you are not running TWS/Gateway 1034 on Linux, you do not need to upgrade to this release. There are a couple of other minor changes in this release, but no harm should occur if you don't install this release on Windows. To do this upgrade from IBC 3.20.0 it is only necessary to extract the IBC.jar and version files to your IBC installation folder, and extract the ibccstart.sh script to your scripts subfolder. If you are currently using an earlier IBC version than 3.20.0, do a full install. [The situation with macOS is uncertain at present. It would be helpful if someone with a macOS machine could experiment with IBC 3.20.0 and TWS/Gateway 1034, and if that doesn't work try updating to IBC 3.21.0. Feed back the results via the issues register.] Richard
Started by Richard L King @ · Most recent @
tws hangs on ibc startup 5
I've recently reinstalled everything on my server and I'm having a little trouble getting IBC going again. After following the instructions in the subsection "Multiple IBC Instances" on the IBC user guide, I can run the startup script, the xterm window pops up, the TWS window pops up, 2 factor successfully completes, but then the TWS window hangs on the message "Processing startup parameters" Below is the tail end of the log file. It should be noted that I can run TWS without IBC just fine and I get that same GLX error mentioned below but it doesn't appear to be a problem when running TWS without IBC. 2025-02-13 20:48:13:717 IBC: Starting TWS java.lang.reflect.InaccessibleObjectException: Unable to make private static javax.swing.UIManager$LAFState javax.swing.UIManager.getLAFState() accessible: module java.desktop does not "opens javax.swing" to unnamed module @2ea41516 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) at java.base/java.lang.reflect.Method.setAccessible(Method.java:193) at feature.search.recorder.JtsMultiLookAndFeel.a(JtsMultiLookAndFeel.java:107) at twslaunch.jclient.login.b.d(b.java:430) at twslaunch.jclient.login.q.a(q.java:461) at jclient.LoginFrame.main(LoginFrame.java:461) at ibcalpha.ibc.IbcTws.startTws(Unknown Source) at ibcalpha.ibc.IbcTws.startTwsOrGateway(Unknown Source) at ibcalpha.ibc.IbcTws.load(Unknown Source) at ibcalpha.ibc.IbcTws.main(Unknown Source) ES2 Prism: Error - GLX extension is not supported GLX version 1.3 or higher is required 2025-02-13 15:48:18:022 IBC: detected frame entitled: Login; event=Opened 2025-02-13 15:48:18:023 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT 2025-02-13 15:48:18:024 IBC: trading mode from settings: tradingMode=live 2025-02-13 15:48:18:024 IBC: Setting Trading mode = live 2025-02-13 15:48:18:108 IBC: Setting user name 2025-02-13 15:48:18:110 IBC: Setting password 2025-02-13 15:48:18:115 IBC: Login attempt: 1 2025-02-13 15:48:18:115 IBC: trading mode from settings: tradingMode=live 2025-02-13 15:48:18:115 IBC: Waiting for Login frame to become SecondFactorAuthenticationDialog 2025-02-13 15:48:18:120 IBC: detected frame entitled: Login; event=Activated 2025-02-13 15:48:18:125 IBC: detected frame entitled: Login; event=Focused 2025-02-13 15:48:18:169 IBC: Click button: Log In 2025-02-13 15:48:18:379 IBC: Button now disabled: Log In 2025-02-13 15:48:25:730 IBC: Login frame has now become SecondFactorAuthenticationDialog 2025-02-13 15:48:25:730 IBC: detected frame entitled: Second Factor Authentication; event=Opened 2025-02-13 15:48:25:730 IBC: Second Factor Authentication initiated 2025-02-13 15:48:29:954 IBC: detected dialog entitled: Second Factor Authentication; event=Closed 2025-02-13 15:48:29:954 IBC: Duration since login: 11 seconds 2025-02-13 15:48:32:018 IBC: detected dialog entitled: Downloading settings from server; event=Closed IBC returned exit status 0 autorestart file not found TWS finished
Started by tbrown122387@... @ · Most recent @
How to set the logoff radio button to "Auto Restart" 5
Greetings, Based on the recommendation from, I like to set Choose "Auto Restart" instead of "Auto Logoff" in the "Auto Logoff Timer" section. https://ibkrcampus.com/campus/ibkr-api-page/twsapi-doc/#bp-reauthenticate When I start my IBC with the default Confi.ini, I get this: What Config.ini settings changes "Auto logoff" to "Auto Restart"? I am aware of these settings, but not sure which one changes the radio button? AutoLogoffTime= AutoRestartTime= ColdRestartTime= Thank you!
Started by pythontrader @ · Most recent @
Java Error Linux 6
Something in my set-up is wrong? I used to have a java configuration but removed it (had downloaded for IBController) Getting this error: java.lang.IllegalArgumentException: Malformed \uxxxx encoding. at java.util.Properties.loadConvert(Properties.java:574) at java.util.Properties.load0(Properties.java:391) at java.util.Properties.load(Properties.java:341) at ibcalpha.ibc.DefaultSettings.load(Unknown Source) at ibcalpha.ibc.DefaultSettings.<init>(Unknown Source) at ibcalpha.ibc.IbcTws.setupDefaultEnvironment(Unknown Source) at ibcalpha.ibc.IbcTws.main(Unknown Source)
Started by Salvador Barragan-Santana @ · Most recent @
IBC Closing after TWS/Gateway failed to display login dialog 6
I am trying to run IBC(3.20) / Gateway 10.33 on arm64 Debian. I have downloaded and installed the right JRE and am able to get the gatewaystart.sh script to execute. However it is not able to get past the display of the login dialog. It is not possible for me to test the standalone execution of the Gateway because the pre-packaged JRE does not work on ARM. I am attaching the log file and will be grateful for any help. I am migrating from Saxo to IBKR and am not very familiar with Java. Thanks Manish
Started by manish.p.mahajan@... @ · Most recent @
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.
Started by algora.official.software@... @ · Most recent @
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.
Started by algora.official.software@... @
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
Started by Frederic.lescaroux@... @ · Most recent @
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
Started by Bennie @ · Most recent @
Current Image
Image Name
Sat 8:39am