Code Monkey home page Code Monkey logo

Comments (18)

rlktradewright avatar rlktradewright commented on August 22, 2024

No, you don't need to put anything into those folders. You just tell TWS/Gateway where to store their settings using the IbDir setting in config.ini, and that's what they will do.

But if you start with the folders empty, TWS/Gateway will start with a default configuration which won't include any customisations you might have done, just as if you had installed them for the first time.

So if you want to carry over your existing settings, here's the easiest way to do it (do this before setting IbDir to point to the new folders):

  1. Run TWS with your live account, and then shut it down.
  2. Open the file C:\Jts\launcher.log in an text editor, and go to the last line in the file. It will say something like:

'Switching to a new log 'C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl\ibgateway.log'...

  1. Copy the folder with the long name to C:\JtsLive.
  2. In your config.ini for the live account, set:

IbDir=C:\\JtsLive

Note the double backslash - you must do this on Windows.

  1. Now when you run Ibc against the live account, it should pick up the settings from the folder in C:\JtsLive, with exactly the same configuration as before.

Now you can repeat the same steps for your paper account (using the JtsPaper directory instead, obviously).

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

I need to run Paper and Live account at the same time,

  1. Create Folder C:\JtsLive and C:\JtsPaper, DONE
  2. Copy C:\Jts\launcher.log into both new folder, would it be correct?
    Under C:\JtsLive\launcher.log, add Switching to a new log 'C:\JtsLive\launcher.log at the end?
    Under C:\JtsPaper\launcher.log, add Switching to a new log 'C:\JtsPaper\launcher.log at the end?
  3. Under IBC, there is only 1 config.ini file, do I need to make copy into configLive.ini and configPaper.ini?

Do you have any suggestions?
Thank you very much for any suggestions (^v^)

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

Please try to understand what I wrote! Also read and understand the User Guide. Here's what it says about setting up to run both live and paper at the same time, in the section entitled Multiple IBC Instances:

  1. Install TWS into the default location (C:\Jts on Windows)

  2. Create two new folders C:\JtsLive and C:\JtsPaper to store the settings

  3. Create two IBC configuration files called IBCLive.ini and IBCPaper.ini

  4. Set the IbDir option in them to point to the relevant folder, ie IbDir=C:\JtsLive and IbDir=C:\JtsPaper, and set the IbLoginId and IbPassword to the live or paper account values as appropriate

  5. Create two start scripts (by copying StartTWS.bat) called StartTWSLive.bat and StartTWSPaper.bat

  6. Change the set IBC_INI=... line in each script file to refer to the relevant configuration file

  7. Change the set LOG_PATH=... line in each script file to refer to different folders, for example set LOG_PATH=%IBC_PATH%\LiveLogs and set LOG_PATH=%IBC_PATH%\PaperLogs

  8. Now when you run the new scripts, each will start a separate instance of TWS connected to a different account, with its settings stored in separate folders (but don't do this just yet)

What this description doesn't cover is getting your existing settings into the relevant places. I told you how to do that before, but I'll have to tell you again because you seem to have completely misunderstood me. So here goes:

  1. Run TWS manually (ie not using IBC) by using the icon on your desktop. Login to your live account. Then shut TWS down.

  2. Open the file C:\Jts\launcher.log in a text editor, and go to the last line in the file. It will say something like:

Switching to a new log 'C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl\ibgateway.log'...

  1. The folder with a the long name, pfjmmhneghhnhmckibpekknigmopppmicccbmjkl in this example, is where TWS stores its settings by default for your live account. Note that your folder name may not be the same. So you want to copy this folder to C:\JtsLive. DO NOT COPY C:\Jts\launcher.log anywhere, your only interest in this file is the folder name in its last line, and it's that folder you must copy.

So copy C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl to C:\JtsLive.

  1. Now when you run StartTWSLive.bat (that you created in step 5), it will pick up the copy of the settings that you put in C:\JtsLive (step 11).

  2. Now run TWS manually again, and this time log in to your paper account. Then shut it down.

  3. Open the file C:\Jts\launcher.log in a text editor, and go to the last line in the file. It will say something like:

Switching to a new log 'C:\Jts\eklmcdkciikkjbhknihjmbpemegnbnnkndecioep\ibgateway.log'...

Note that the long folder name will be different from the one in step 11, because this is the folder that stores the paper settings.

  1. Copy C:\Jts\eklmcdkciikkjbhknihjmbpemegnbnnkndecioep to C:\JtsPaper.

  2. Now when you run StartTWSPaper.bat (that you created in step 5), it will pick up the copy of the settings that you put in C:\JtsPaper (step 15).

That's it. Now you should be able to run live and paper TWS at the same time.

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024
  1. Create two start scripts (by copying StartTWS.bat) called StartTWSLive.bat and StartTWSPaper.bat under C:\IBC folder

  2. Change the set IBC_INI=... line in each script file to refer to the relevant configuration file

  3. Change the set LOG_PATH=... line in each script file to refer to different folders, for example set LOG_PATH=%IBC_PATH%\LiveLogs and set LOG_PATH=%IBC_PATH%\PaperLogs

set TWS_MAJOR_VRSN=974
set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\config.ini
set TRADING_MODE=
set IBC_PATH=%SYSTEMDRIVE%\IBC
set TWS_PATH=%SYSTEMDRIVE%\JtsLive
set LOG_PATH=%IBC_PATH%\LiveLogs

Q : Would it be correct setting for step 5 - 7?

  1. Open the file C:\Jts\launcher.log in a text editor, and go to the last line in the file. It will say something like:
    From : Switching to a new encrypted log...
    To : Switching to a new log 'C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl\ibgateway.log'...

Q: Where do the name "pfjmmhneghhnhmckibpekknigmopppmicccbmjkl" come from? Can I use another name instead?
Q: there is only 1 launcher.log file under C:\Jts, do I need to create 2 log files under C:\Jts?

  • Livelauncher.log and add 'C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl\ibgateway.log'...

  • Paperlauncher.log and add 'C:\Jts\eklmcdkciikkjbhknihjmbpemegnbnnkndecioep\ibgateway.log'...

Do you have any suggestions?
Thank you very much for any suggestions (^v^)

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

Let me first explain something that you don't seem to have understood.

When TWS runs, it stores its settings in a folder that has a long name that is different for each user. Similarly for the the gateway, using a different folder name. An example of these long names is pfjmmhneghhnhmckibpekknigmopppmicccbmjkl. I have no idea how TWS and Gateway generate these names, but it really doesn't matter, and I don't need to know that.

By default, these folders are stored in C:\Jts (but IBC can change this default location using the IbDir setting in the config.ini file). So if you run TWS with your live account, and then close it and run it again with your paper account, and then close it and run it again with the demo account, you'll find there are several of these long folder names within C:\Jts. In fact every time you run the using the demo account it will generate another one of these, because there are many different demo accounts even though there is only a single login. So after a time you may find that there are many of these folders in C:\Jts.

This mechanism enables TWS/Gateway to find the settings for different users, or for the same user running the other program. But it doesn't work well if you try to run TWS and Gateway, or live and paper, at the same time: this is because TWS and Gateway both use a file called C:\Jts\ jts.ini to store some settings that are not user-specific, so if you run them at the same time they'll both be trying to access this file at the same time.

So, if we want to be able to run live and paper TWS (or Gateway) at the same time, we need to make sure that we tell TWS/Gateway to store their settings in different root folders for the two cases: that's why we have two different config.ini files, with the IbDir set to different folders. (I suggested calling the .ini files IBCLive.ini and IBCPaper.ini, but you could call them anything you like, for example configLive.ini and configPaper.ini.) So in the IBCLive.ini, we set IbcDir=C:\JtsLive, and in the IBCPaper.ini file we set IbcDir=C:\JtsPaper. See steps 3 and 4.

Now because we have two .ini files, we'll need two different start command files, so we create StartTwsLive.bat and StartTwsPaper.bat, with IBC_INI=... referring to the relevant configuration file, ie IbcLive.ini or IbcPaper.ini. And they also need to refer to different folders for storing the log iles. See steps 5, 6 and 7.

When this is all done, then when we run the start file for the live TWS, it will store its long-name settings folder in C:\JtsLive, and it will also use C:\JtsLive\Jts.ini for its non-user specific settings. Similarly for paper. So now we have two completely separate setups for live and paper, and you can run both at the same time, and they won't interfere. Note here that the long-name folder that TWS creates in C:\JtsLive will have exactly the same name as was created originally in C:\Jts: for the same comnbination of accountname, trading mode and program (TWS or Gateway) it will always generate the same filename.

But if you have already been using TWS in the default configuration, and have configured it in a way that suits you, and maybe have several tickers running, or charts, or have changed the layouts, or configured the API, or a thousand and one other things, then you don't really want to have to configure it all again.

So we need to find a way to copy C:\Jts<live long name> to C:\JtsLive<live long name>, and to copy C:\Jts<paper long name> to C:\JtsPaper<paper long name>. Trouble is, we don't know what and are.

But there's an easy way to find out: when TWS and Gateway run, they log lots of information, and after the user has logged on they use a log file in the long-name folder, like any other settings. But before the user has logged on, they don't know which long-name folder to use, so they simply write to a file called launcher.log, and this file is stored in the root settings folder, eg C:\Jts by default. When the user has logged on, they now know where they should be logging, so they create a new logfile and write a helpful message to launcher.log that says something like:

Switching to a new log 'C:\Jts\ajjknaenocmkiieaaggehkppghalejhjpkddmefm\tws.log'...

Here, ajjknaenocmkiieaaggehkppghalejhjpkddmefm is the relevant long-name folder that we are looking for (but it will be a different name for live, paper, tws, gateway , etc).

So if you log in to TWS manually (ie not using IBC) using the desktop icon, using your live account, and get the message above as the last line in your launcher.log, then you now know that TWS will store its settings in C:\JtsLive\ajjknaenocmkiieaaggehkppghalejhjpkddmefm when you run IBC using the live setup. So if you copy this folder from C:\Jts to C:\JtsLive, then all the original configuration of TWS will be picked up when you run it using IBC. See steps 9-16. NOTE: as I keep saying, ajjknaenocmkiieaaggehkppghalejhjpkddmefm is only AN EXAMPLE of a long-name: the names that TWS generates for your user account may be completely different: that's why you have to go through this process to find out what the relevant folder names are for you.

ok, hopefully you now have a better understanding of what's going on here and what we're trying to do. If you don't understand it now, I don't think there's anything more I can do to help you (I've already spent several hours on this, and my time is limited).

Now I'll answer the specific questions you asked. Hopefully the above will help you make sense of my answers.

  1. Change the set LOG_PATH=... line in each script file to refer to different folders, for example set LOG_PATH=%IBC_PATH%\LiveLogs and set LOG_PATH=%IBC_PATH%\PaperLogs

set TWS_MAJOR_VRSN=974
set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\config.ini
set TRADING_MODE=
set IBC_PATH=%SYSTEMDRIVE%\IBC
set TWS_PATH=%SYSTEMDRIVE%\JtsLive
set LOG_PATH=%IBC_PATH%\LiveLogs

Q : Would it be correct setting for step 5 - 7?

NO NO NO!

Step 5 says 'Change the set IBC_INI=... line in each script file to refer to the relevant configuration file' (sorry that should be CONFIG rather than IBC_INI - I'll update the User Guide) . So you want:

set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\IBCLive.ini

in the live start script, and

set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\IBCPaper.ini

in the paper start script.

Also, I didn't tell you to change the TWS_PATH setting: leave this as it was, ie:

set TWS_PATH=%SYSTEMDRIVE%\Jts

  1. Open the file C:\Jts\launcher.log in a text editor, and go to the last line in the file. It will say something like:
    From : Switching to a new encrypted log...
    To : Switching to a new log 'C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl\ibgateway.log'...

Q: Where do the name "pfjmmhneghhnhmckibpekknigmopppmicccbmjkl" come from? Can I use another name instead?

NO NO NO NO NO!

The last line of the file tells you the name of the folder where TWS stores its settings. You want to copy that folder to the same place in C:\JtsLive or C:\JtsPaper as appropriate, so of course you can't change that name. If you've understood all the stuff I wrote above, you should realise now why this is totally wrong.

Q: there is only 1 launcher.log file under C:\Jts, do I need to create 2 log files under C:\Jts?

  • Livelauncher.log and add 'C:\Jts\pfjmmhneghhnhmckibpekknigmopppmicccbmjkl\ibgateway.log'...

  • Paperlauncher.log and add 'C:\Jts\eklmcdkciikkjbhknihjmbpemegnbnnkndecioep\ibgateway.log'...

NO NO NO NO NO NO NO!

You don't create any log files. TWS creates its own log files. I said 'DO NOT COPY C:\Jts\launcher.log anywhere, your only interest in this file is the folder name in its last line, and it's that folder you must copy.' So why do you think you need to create another one? Again, you should now understand why this is completely wrong.

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

When I run StartTWSLive.bat, it works fine, but when I run StartTWSPaper.bat, it selects live account instead of paper account for login and it pops up for correct selection.

Furthermore, log file is generated for live account with rand name for dir.

Do you have any suggestions on where to set paper?
Thank you very much for any suggestions (^v^)


Under C:\IBC\StartTWSLive.bat
set TWS_MAJOR_VRSN=974
set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\configLive.ini
set TRADING_MODE=
set IBC_PATH=%SYSTEMDRIVE%\IBC
set TWS_PATH=%SYSTEMDRIVE%\Jts
set LOG_PATH=%IBC_PATH%\LiveLogs
set TWSUSERID=
set TWSPASSWORD=
set JAVA_PATH=
set HIDE=

Under C:\Users\XXX\Documents\IBC\configLive.ini
IbLoginId= Fill in UserName
IbPassword= Fill in Password
TradingMode=live
IbDir=c:\JtsLive


Under C:\IBC\StartTWSPaper.bat
set TWS_MAJOR_VRSN=974
set CONFIG=%HOMEDRIVE%%HOMEPATH%\Documents\IBC\configPaper.ini
set TRADING_MODE=
set IBC_PATH=%SYSTEMDRIVE%\IBC
set TWS_PATH=%SYSTEMDRIVE%\Jts
set LOG_PATH=%IBC_PATH%\PaperLogs
set TWSUSERID=
set TWSPASSWORD=
set JAVA_PATH=
set HIDE=

Under C:\Users\XXX\Documents\IBC\configPaper.ini
IbLoginId= Fill in UserName
IbPassword= Fill in Password
TradingMode=paper
IbDir=c:\JtsPaper

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

When you set IbDir, you have to use double backslashes. The comments in the file make that very clear.

So try

IbDir=C:\\JtsLive

and

IbDir=C:\\JtsPaper

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

IbDir=c:\ \JtsPaper, I already use double backslashes as shown coding, but HTML code converts into single backslashes, I confirm using double backslashes and have tested again, when I run StartTWSPaper.bat, even through TradingMode=paper is set, Live Trading mode is still selected by default, Please see following images
Do you have any suggestions on what wrong it is?
Thank you very much for any suggestions (^v^)

paperjpg

paperjpg2

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

Please post your IBC logfile for the paper setup as an attachment to your reply.

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

Please see following details
Do you have any suggestions on what wrong it is?
Thank you very much for any suggestions (^v^)

This log file is located at:

C:\IBC\PaperLogs\IBC-3.7.3_TWS-974_THURSDAY.txt

================================================================================

Starting IBC version 3.7.3 on 06-Dec-18 at 6:56:43.43

Operating system: Microsoft Windows 7 64-bit

Arguments:

TWS version = 974
Entry point = ibcalpha.ibc.IbcTws
/TwsPath = C:\Jts
/IbcPath = C:\IBC
/Config = C:\Users\XXX\Documents\IBC\configPaper.ini
/Mode =
/JavaPath =
/User =
/PW =
/FIXUser =
/FIXPW =

=================================

Generating the classpath
Classpath=C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar

Generating the JAVA VM options
Java VM Options= -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dinstaller.uuid=xxxxx-xxx-xxx-xxx-xxxxxx -DvmOptionsPath=C:\Jts\ibgateway\974\ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true

Determining the location of java.exe
Location of java.exe=c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin

Starting IBC with this command:
"c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin\java.exe" -cp "C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dinstaller.uuid=xxxxx-xxx-xxx-xxx-xxxxxx -DvmOptionsPath=C:\Jts\ibgateway\974\ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true ibcalpha.ibc.IbcTws "C:\Users\XXX\Documents\IBC\configPaper.ini"

System Properties

swing.boldMetal = false
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin
java.vm.version = xxxxxxxxxx
sun.awt.nopixfmt = true
vmOptionsPath = C:\Jts\ibgateway\974\ibgateway.vmoptions
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
user.country =
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = xxxxxxxxxx
java.vm.specification.name = Java Virtual Machine Specification
user.dir = C:\Jts
java.runtime.version = x.x.x_xxx-xxx
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\endorsed
os.arch = x86
java.io.tmpdir = C:\Users\XXX\AppData\Local\Temp
line.separator =

java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.java2d.noddraw = true
sun.jnu.encoding = XXXX
java.library.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;.....
user.country.display =
java.specification.name = Java Platform API Specification
java.class.version = XXX
sun.management.compiler = HotSpot Client Compiler
user.language.display =
os.version = 6.1
user.home = C:\Users\XXX
user.timezone =
installer.uuid = xxxxx-xxx-xxx-xxx-xxxxxx
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = XXXXX
java.specification.version = 1.8
java.class.path = C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar
user.name = XXX
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcTws C:\Users\XXX\Documents\IBC\configPaper.ini
java.home = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = x.x.x_xxx
java.ext.dirs = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\resources.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\rt.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\sunrsasign.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jsse.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jce.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\charsets.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jfr.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\classes
java.vendor = Oracle Corporation
file.separator =
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding =
sun.cpu.endian =
sun.desktop = windows
sun.locale.formatasdefault = true
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

2018-12-06 06:56:44:140 IBC: Using default settings provider: ini file is C:\Users\XXX\Documents\IBC\configPaper.ini
2018-12-06 06:56:44:156 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2018-12-06 06:56:44:156 IBC: Using default config dialog manager: constructor parameter isGateway=false
2018-12-06 06:56:44:156 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2018-12-06 06:56:44:156 IBC: Using default config dialog manager
2018-12-06 06:56:44:156 IBC: CommandServer is not started because the port is not configured
2018-12-06 06:56:44:312 IBC: TWS Settings directory is: c:JtsPaper
2018-12-06 06:56:44:327 IBC: Creating minimal c:JtsPaper\jts.ini
2018-12-06 06:56:44:327 IBC: jts.ini: [Logon]
2018-12-06 06:56:44:327 IBC: jts.ini: s3store=true
2018-12-06 06:56:44:327 IBC: jts.ini: [IBGateway]
2018-12-06 06:56:44:327 IBC: jts.ini: ApiOnly=true
2018-12-06 06:56:49:210 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 06:56:49:221 IBC: Detected frame entitled: Login; event=Opened
2018-12-06 06:56:49:308 IBC: Click button: Log In
2018-12-06 06:56:49:498 IBC: Button now disabled: Log In
2018-12-06 06:56:50:112 IBC: Detected frame entitled: Authenticating...; event=Activated
2018-12-06 06:56:50:119 IBC: Detected frame entitled: Authenticating...; event=Opened
2018-12-06 06:56:51:605 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 06:56:51:617 IBC: Detected dialog entitled: Login Error; event=Activated
2018-12-06 06:56:51:623 IBC: Detected dialog entitled: Login Error; event=Opened
2018-12-06 06:56:54:925 IBC: Detected dialog entitled: Login Error; event=Closing
2018-12-06 06:56:54:946 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 06:56:58:880 IBC: Detected frame entitled: Login; event=Closing
2018-12-06 06:56:58:891 IBC: Detected dialog entitled: Login Error; event=Closed
2018-12-06 06:56:58:892 IBC: Detected frame entitled: Login; event=Closed

TWS finished at 06-Dec-18 6:56:59.57

IBC running TWS 974 has finished at 06-Dec-18 6:56:59.58

================================================================================

This log file is located at:

C:\IBC\PaperLogs\IBC-3.7.3_TWS-974_THURSDAY.txt

================================================================================

Starting IBC version 3.7.3 on 06-Dec-18 at 7:02:06.13

Operating system: Microsoft Windows 7 64-bit

Arguments:

TWS version = 974
Entry point = ibcalpha.ibc.IbcTws
/TwsPath = C:\Jts
/IbcPath = C:\IBC
/Config = C:\Users\XXX\Documents\IBC\configPaper.ini
/Mode =
/JavaPath =
/User =
/PW =
/FIXUser =
/FIXPW =

=================================

Generating the classpath
Classpath=C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar

Generating the JAVA VM options
Java VM Options= -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dinstaller.uuid=xxxxx-xxx-xxx-xxx-xxxxxx -DvmOptionsPath=C:\Jts\ibgateway\974\ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true

Determining the location of java.exe
Location of java.exe=c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin

Starting IBC with this command:
"c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin\java.exe" -cp "C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dinstaller.uuid=xxxxx-xxx-xxx-xxx-xxxxxx -DvmOptionsPath=C:\Jts\ibgateway\974\ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true ibcalpha.ibc.IbcTws "C:\Users\XXX\Documents\IBC\configPaper.ini"

System Properties

swing.boldMetal = false
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin
java.vm.version = xxxxxxxxxx
sun.awt.nopixfmt = true
vmOptionsPath = C:\Jts\ibgateway\974\ibgateway.vmoptions
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
user.country =
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = xxxxxxxxxx
java.vm.specification.name = Java Virtual Machine Specification
user.dir = C:\Jts
java.runtime.version = xxxxxxxxxx
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\endorsed
os.arch = x86
java.io.tmpdir = C:\Users\XXX\AppData\Local\Temp
line.separator =

java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.java2d.noddraw = true
sun.jnu.encoding = XXXX
java.library.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows; ....
user.country.display =
java.specification.name = Java Platform API Specification
java.class.version = XXX
sun.management.compiler = HotSpot Client Compiler
user.language.display =
os.version = 6.1
user.home = C:\Users\XXX
user.timezone = xxxxx
installer.uuid = xxxxx-xxx-xxx-xxx-xxxxxx
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = XXXXX
java.specification.version = 1.8
java.class.path = C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar
user.name = XXX
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcTws C:\Users\XXX\Documents\IBC\configPaper.ini
java.home = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = x.x.x_xxx
java.ext.dirs = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\resources.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\rt.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\sunrsasign.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jsse.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jce.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\charsets.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jfr.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\classes
java.vendor = Oracle Corporation
file.separator =
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding =
sun.cpu.endian =
sun.desktop = windows
sun.locale.formatasdefault = true
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

2018-12-06 07:02:07:359 IBC: Using default settings provider: ini file is C:\Users\XXX\Documents\IBC\configPaper.ini
2018-12-06 07:02:07:359 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2018-12-06 07:02:07:359 IBC: Using default config dialog manager: constructor parameter isGateway=false
2018-12-06 07:02:07:359 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2018-12-06 07:02:07:359 IBC: Using default config dialog manager
2018-12-06 07:02:07:375 IBC: CommandServer is not started because the port is not configured
2018-12-06 07:02:07:624 IBC: TWS Settings directory is: c:JtsPaper
2018-12-06 07:02:07:640 IBC: Ensuring c:JtsPaper\jts.ini contains required minimal lines
2018-12-06 07:02:07:640 IBC: Found section: [Logon]
2018-12-06 07:02:07:640 IBC: Can't find setting: s3store=false
2018-12-06 07:02:07:640 IBC: Found section: [Logon]
2018-12-06 07:02:07:640 IBC: Found setting: s3store=true
2018-12-06 07:02:07:640 IBC: Found section: [IBGateway]
2018-12-06 07:02:07:640 IBC: Found setting: ApiOnly=true
2018-12-06 07:02:07:640 IBC: Confirmed c:JtsPaper\jts.ini contains required minimal lines
2018-12-06 07:02:14:384 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:02:14:397 IBC: Detected frame entitled: Login; event=Opened
2018-12-06 07:02:14:532 IBC: Click button: Log In
2018-12-06 07:02:14:756 IBC: Button now disabled: Log In
2018-12-06 07:02:15:409 IBC: Detected frame entitled: Authenticating...; event=Activated
2018-12-06 07:02:15:414 IBC: Detected frame entitled: Authenticating...; event=Opened
2018-12-06 07:02:16:580 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:02:16:592 IBC: Detected dialog entitled: Login Error; event=Activated
2018-12-06 07:02:16:594 IBC: Detected dialog entitled: Login Error; event=Opened
2018-12-06 07:02:57:507 IBC: Detected dialog entitled: Login Error; event=Activated
2018-12-06 07:03:03:673 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:03:03:679 IBC: Detected dialog entitled: Login Error; event=Closed
2018-12-06 07:03:05:070 IBC: Detected frame entitled: Login; event=Closing
2018-12-06 07:03:05:103 IBC: Detected frame entitled: Login; event=Closed

TWS finished at 06-Dec-18 7:03:05.79

IBC running TWS 974 has finished at 06-Dec-18 7:03:05.81

================================================================================

This log file is located at:

C:\IBC\PaperLogs\IBC-3.7.3_TWS-974_THURSDAY.txt

================================================================================

Starting IBC version 3.7.3 on 06-Dec-18 at 7:06:31.37

Operating system: Microsoft Windows 7 64-bit

Arguments:

TWS version = 974
Entry point = ibcalpha.ibc.IbcTws
/TwsPath = C:\Jts
/IbcPath = C:\IBC
/Config = C:\Users\XXX\Documents\IBC\configPaper.ini
/Mode =
/JavaPath =
/User =
/PW =
/FIXUser =
/FIXPW =

=================================

Generating the classpath
Classpath=C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar

Generating the JAVA VM options
Java VM Options= -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dinstaller.uuid=xxxxx-xxx-xxx-xxx-xxxxxx -DvmOptionsPath=C:\Jts\ibgateway\974\ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true

Determining the location of java.exe
Location of java.exe=c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin

Starting IBC with this command:
"c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin\java.exe" -cp "C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dinstaller.uuid=xxxxx-xxx-xxx-xxx-xxxxxx -DvmOptionsPath=C:\Jts\ibgateway\974\ibgateway.vmoptions -Dsun.awt.nopixfmt=true -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true ibcalpha.ibc.IbcTws "C:\Users\XXX\Documents\IBC\configPaper.ini"

System Properties

swing.boldMetal = false
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin
java.vm.version = xxxxxxxxxx
sun.awt.nopixfmt = true
vmOptionsPath = C:\Jts\ibgateway\974\ibgateway.vmoptions
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
user.country =
user.script =
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = xxxxxxxxxx
java.vm.specification.name = Java Virtual Machine Specification
user.dir = C:\Jts
java.runtime.version = x.x.x_xxx-b16
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\endorsed
os.arch = x86
java.io.tmpdir = C:\Users\XXX\AppData\Local\Temp
line.separator =

java.vm.specification.vendor = Oracle Corporation
user.variant =
os.name = Windows 7
sun.java2d.noddraw = true
sun.jnu.encoding = XXXX
java.library.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows; ...
user.country.display =
java.specification.name = Java Platform API Specification
java.class.version =
sun.management.compiler = HotSpot Client Compiler
user.language.display =
os.version = 6.1
user.home = C:\Users\XXX
user.timezone =
installer.uuid =
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding =
java.specification.version = 1.8
java.class.path = C:\Jts\ibgateway\974\jars\jts4launch-974.jar;C:\Jts\ibgateway\974\jars\locales.jar;C:\Jts\ibgateway\974\jars\log4j-api-2.5.jar;C:\Jts\ibgateway\974\jars\log4j-core-2.5.jar;C:\Jts\ibgateway\974\jars\total-2018.jar;C:\Jts\ibgateway\974\jars\twslaunch-974.jar;C:\Jts\ibgateway\974\jars\twslaunch-install4j-1.9.jar;C:\IBC\IBC.jar
user.name = XXX
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcTws C:\Users\XXX\Documents\IBC\configPaper.ini
java.home = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode
java.version = x.x.x_xxx
java.ext.dirs = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\ext;C:\Windows\Sun\Java\lib\ext
sun.boot.class.path = c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\resources.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\rt.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\sunrsasign.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jsse.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jce.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\charsets.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\lib\jfr.jar;c:\program files (x86)\common files\i4j_jres\x.x.x_xxx\classes
java.vendor = Oracle Corporation
file.separator =
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding =
sun.cpu.endian =
sun.desktop = windows
sun.locale.formatasdefault = true
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

2018-12-06 07:06:32:003 IBC: Using default settings provider: ini file is C:\Users\XXX\Documents\IBC\configPaper.ini
2018-12-06 07:06:32:003 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2018-12-06 07:06:32:003 IBC: Using default config dialog manager: constructor parameter isGateway=false
2018-12-06 07:06:32:003 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2018-12-06 07:06:32:003 IBC: Using default config dialog manager
2018-12-06 07:06:32:018 IBC: CommandServer is not started because the port is not configured
2018-12-06 07:06:32:174 IBC: TWS Settings directory is: c:JtsPaper
2018-12-06 07:06:32:174 IBC: Ensuring c:JtsPaper\jts.ini contains required minimal lines
2018-12-06 07:06:32:174 IBC: Found section: [Logon]
2018-12-06 07:06:32:174 IBC: Can't find setting: s3store=false
2018-12-06 07:06:32:174 IBC: Found section: [Logon]
2018-12-06 07:06:32:174 IBC: Found setting: s3store=true
2018-12-06 07:06:32:174 IBC: Found section: [IBGateway]
2018-12-06 07:06:32:174 IBC: Found setting: ApiOnly=true
2018-12-06 07:06:32:174 IBC: Confirmed c:JtsPaper\jts.ini contains required minimal lines
2018-12-06 07:06:38:147 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:06:38:215 IBC: Detected frame entitled: Login; event=Opened
2018-12-06 07:06:38:342 IBC: Click button: Log In
2018-12-06 07:06:38:587 IBC: Button now disabled: Log In
2018-12-06 07:06:39:275 IBC: Detected frame entitled: Authenticating...; event=Activated
2018-12-06 07:06:39:281 IBC: Detected frame entitled: Authenticating...; event=Opened
2018-12-06 07:06:41:963 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:06:41:985 IBC: Detected dialog entitled: Login Error; event=Activated
2018-12-06 07:06:41:989 IBC: Detected dialog entitled: Login Error; event=Opened
2018-12-06 07:06:43:965 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:06:43:972 IBC: Detected dialog entitled: Login Error; event=Closed
2018-12-06 07:08:41:941 IBC: Detected frame entitled: Login; event=Activated
2018-12-06 07:08:44:654 IBC: Detected frame entitled: Login; event=Closing
2018-12-06 07:08:44:676 IBC: Detected frame entitled: Login; event=Closed

TWS finished at 06-Dec-18 7:08:45.36

IBC running TWS 974 has finished at 06-Dec-18 7:08:45.36

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

[When I said 'Please post your IBC logfile for the paper setup as an attachment to your reply', I meant you should attach it, not quote the whole thing inline. Attaching logs is much better: I can open them in a text editor, compare them more easily with other logs, avoid the line-wrap, have consistent fonts, don't have to page all the way through all this stuff, etc. If you don't know how to attach a file, just read the sentence at the bottom of the box where you type your comment: 'Attach files by dragging & dropping or selecting them'.]

There are two things here that need to be sorted:

First, there is actually a bug in IBC 3.7.3 when running with TWS 974. This is because I hadn't noticed, until this morning, a change in the TWS login dialog structure for TWS 974 such that IBC cannot find the Live and Paper toggle buttons (but it's fine for Gateway 974, which has a slightly different structure). The result is that that IBC cannot set the trading mode as specified in the .ini file, so TWS just uses the same trading mode as the last time that it was run against the relevant settings directory. Since you've never run TWS for paper trading in either C:\JtsLive or C:\JtsPaper before, it just assumes live trading in both cases. I have fixed this bug, but haven't yet published a new release, so I've attached the fixed version here: use this link to download a zip for the corrected version, and then extract the IBC.jar and Version files into your C:\IBC folder, overwriting the current versions.

Zip file for IBC Version 3.7.4beta

But before running this new version, please read the rest of this and make the necessary changes or your settings will end up in the wrong folder.

Secondly, your IbDir setting is still incorrect. If you look in the logfile you'll see this line:

2018-12-06 07:06:32:174 IBC: TWS Settings directory is: c:JtsPaper

Note that it says c:JtsPaper rather than c:\JtsPaper. There is only one possible reason for this, which is that you have not used the double backslash in

IbDir=c:\\JtsPaper

Note that there are no spaces between the two backslashes.

Instead of using c:\JtsPaper, you'll find that TWS has created a folder called c:\Jts\JtsPaper. I expect you'll have the same thing with the live settings folder as well: it has probably created a folder called c:\Jts\JtsLive, and is storing settings there instead of C:\JtsLive.

So here's what you should do:

  1. Extract the new IBC files from the zip, if you haven't already done so.

  2. Delete the c:\Jts\JtsPaper folder, and the c:\Jts\JtsLive folder.

  3. Make sure that IbDir is set properly for the live account. It should say exactly this:

IbDir=C:\\JtsLive

  1. Now run IBC for the live account. If things are set up right the logfile will show exactly the right folder:

2018-12-dd hh:m:ss:ttt IBC: TWS Settings directory is: C:\JtsLive

Also C:\JtsLive will now contain files called Jts.ini and launcher.log, and launcher.log will contain entries relating to this run. If that's not the case, then you still don't have everything set up right. Also it should have picked up all the settings you copied over previously.

  1. Once everything is ok with the live account, do the same things for the paper account, ie make sure that IbDir says exactly this:

IbDir=C:\\JtsPaper

  1. If so, run IBC for the paper account. Check the logfile's TWS Settings directory is: message, and that C:\JtsPaper contains Jts.ini and launcher.log

All should now be well.

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

Both live and paper work fine now,
Thank you very much for any suggestions (^v^)

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

Yes, but you'll have to wait until tomorrow. I'm in the UK and it's much too late to do this now.

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

Not able to send notification to mobile because testing during IB Server reset period, after that, live account works fine now.
Thank you very much for suggestions (^v^)

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

Here are sample files:

SampleFiles.zip

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

Under configPaper, I already set IbAutoClosedown=no, but TWSPaper still shut down automatically.
Do you have any suggestions on what wrong it is?
Thank you very much for any suggestions (^v^)

from ibc.

rlktradewright avatar rlktradewright commented on August 22, 2024

See #38.

from ibc.

oemGitHub avatar oemGitHub commented on August 22, 2024

Thank you very much for suggestions (^v^)

from ibc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.