开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Upcoming stock earnings dates

ramdukof
 

Is there any API request that returns upcoming stock earnings dates?

If not, do you use any other services to provide this?

I'm interested in both US and foreign exchanges.


Re: The following jar files is missing from the classpath: hsqldb.jar

 

If you were typing that command in a terminal window it will not work
unless you first make the default directory C:\Jts. Doing that allows you
to specify the jar files without specifying the entire path. So to make a
long story short, what if you try using the whole path for the jars in your
command line.

Instead of specifying the jar files like this:

-cp jts.jar;total.2012.jar

Do this:

-cp C:\\Jts\jts.jar;C:\\Jts\total.2012.jar


On Fri, Jul 12, 2013 at 6:56 PM, DavidP <af402469@...> wrote:

**


The defaults classpath in the TWS 938.1h shortcut is
C:&#92;Windows&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar
-Dsun.java2d.noddraw=true -Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;Jts

I tried replacing that classpath with this one from earlier in the thread,
C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar
-Dsun.java2d.noddraw=true -Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;Jts
I was unable to get the shorcut to work after that so I put it back to the
default classpath.

I did also add -hsqldb.jar into the classpath to see what would happen,
but it would not run like that.



[Non-text portions of this message have been removed]


The following jar files is missing from the classpath: hsqldb.jar

 

The defaults classpath in the TWS 938.1h shortcut is C:&#92;Windows&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M jclient/LoginFrame C:&#92;Jts

I tried replacing that classpath with this one from earlier in the thread,
C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar
-Dsun.java2d.noddraw=true -Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;Jts
I was unable to get the shorcut to work after that so I put it back to the default classpath.

I did also add -hsqldb.jar into the classpath to see what would happen, but it would not run like that.


Re: Connect to TWS in main not in Thread (Java)

btw12342001
 

Not much of automation when I need to authorize it manually every time :)
To fix the authorizing part you just need to set trusted IP addresses in TWS. Add 127.0.0.1 for the local machine.


Re: Connect to TWS in main not in Thread (Java)

btw12342001
 

It's just an example so don't expect it to do something else. Your problem isn't really with the threads but the run method (called with .start). That method connects and requests data. If you want more data with the same connection you will have to write it yourself somehow.

You could simply add more lines like

Contract contract = createContract.....
eClientSocket.reqMktData....

but then you'd have to redo the way it handles returned data.

--- In TWSAPI@..., twsapi <no_reply@...> wrote:

Hi board,

I have a question regarding the thread programming in Java with the IB API. In the example application (Example 1) you see that first the main class is called and within that class a new thread is called e.g. new Example1(args[0]).start();
If I move the connect call to TWS e.g. connectToTWS(); into the main class the thread will not see/be able to access the open connection to TWS.

My question is now, why is the thread not able to use the opened connection within main but need its own connection call? And can I actually use just one connection call in main to be used by multiple threads?

What I want to achieve is that the main class opens the initial call to TWS and holds this open while different threads can use this open connection. As every call of connectToTWS(); requires me to allow access in the TWS client I only want to authorize my program once not every time a thread actually opens the connection. Not much of automation when I need to authorize it manually every time :)

Thanks so much for your help!

Regards


Connect to TWS in main not in Thread (Java)

twsapi
 

Hi board,

I have a question regarding the thread programming in Java with the IB API. In the example application (Example 1) you see that first the main class is called and within that class a new thread is called e.g. new Example1(args[0]).start();
If I move the connect call to TWS e.g. connectToTWS(); into the main class the thread will not see/be able to access the open connection to TWS.

My question is now, why is the thread not able to use the opened connection within main but need its own connection call? And can I actually use just one connection call in main to be used by multiple threads?

What I want to achieve is that the main class opens the initial call to TWS and holds this open while different threads can use this open connection. As every call of connectToTWS(); requires me to allow access in the TWS client I only want to authorize my program once not every time a thread actually opens the connection. Not much of automation when I need to authorize it manually every time :)

Thanks so much for your help!

Regards


Re: The following jar files is missing from the classpath: hsqldb.jar

BeeJay (GMX)
 

I'm using TWS 938.1 which starts and runs flawlessly if I open it by
using the TWS icon on the desktop. I'm also using IBControllerV2-9-0
with the default command line. I must admit I don't even know where
the command line can be found. I opened various files and did not see
anything which looks like what has been posted in this thread. Which
file contains the command line?
Sorry, I dont use IBController. But there are a lot of users here which can help you how to change the classpath for the TWS in IBController.

I do see the total.2012.jar file in C:&#92;jts directory.

Thanks David

--- In TWSAPI@..., "BeeJay (GMX)" <bee_jay61@...> wrote:

If you post the the command you use to start the TWS, you should
also mention the TWS version number, cause this command is for
older TWS versions.

Most JAR files are now stored in one single JAR file:
"total.2012.jar".

A more recent command is:

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar
-Dsun.java2d.noddraw=true -Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;Jts


Can you start TWS normally without using IBController? I don't
use that so am not sure how it works. The command I use to start
TWS is the default from the installation script.

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp
jts.jar;hsqldb.jar;jcommon-1.0.12.jar;jfreechart-1.0.9.jar;jhall.jar;other.jar;rss.jar

-Dsun.java2d.noddraw=true -Xmx512M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;jts

--- In TWSAPI@..., "DavidP" <af402469@> wrote:

Thanks for the reply, yes the file is in C:&#92;jts. The file I am
using is hsqldb-1.7.3.3 I also have the folder hsqldb-2.3.0
with its contents as downloaded off the web. I run
sampleIBControllerStart and then it brings up the error
message.

--- In TWSAPI@..., "btw12342001" <newguy@> wrote:

You don't mention if you actually have the file. The
default location in in the &#92;jts directory.

--- In TWSAPI@..., "DavidP" <af402469@> wrote:

Hi,

I'm just setting up on a new PC and I'm encountering the
following error message.

Fatal Error: one of the following jar files is missing from
the classpath: hsqldb.jar Please make sure you run the
application from the shortcut that was installed on your
desktop or on the Start menu when you upgraded.

I've not come across these before but I also got some
regarding jfreechart and jcommon which I seemed to overcome
by downloading and pasting into the appropriate folder. I
cant seem to get this one sorted though. Any ideas?

Thanks David



------------------------------------

Yahoo! Groups Links




------------------------------------

Yahoo! Groups Links


Re: TWS API child order questions

Ed
 

If I remember right he was talking about a limit order which of course
will sit until the price is met. Market orders in liquid markets are
essentially instantaneous.

On 7/12/2013 2:23 PM, cf16r wrote:

@raysalem619 did you really mean "minutes"?
can somebody tell this is not true in a real account?
I would like to see rather something less than second.


Re: Compiling TestSocketClient

bbbvvgtm
 

--- In TWSAPI@..., bbbvvgtm <no_reply@...> wrote:

I just downloaded the latest versions from IB. I wanted to compile/run/modify TestSocketClient, but ran into a couple of minor gotchas. So, I decided to document it in case someone else finds it useful.

I started with IB's Getting Started document:
I had some troubles in a couple of areas, so this is my getting started HowTo.

Download and install the standalone desktop version of IB's Trader Workstation
Start Trader Workstation
Click on Edit-Global Configuration
Make sure "Enable ActiveX and Socket Clients" checkbox is checked
Note the number in "Socket port." (Here I will assume it's 7499.)
Click "OK" to save the settings

Download and install the IB API
Create a new folder for your program. (Here I will assume it's C:&#92;MyTestProgram.)
Copy the following folders (and sub-folders) from IB's API location:
Shared
SocketClient
TestSocketClient
Launch Microsoft Visual Studio 2010 Professional Edition
Hopefully 2008 and 2012 also work.
I don't believe the Express Edition includes MFC and therefore will not work.
Click on File - New - Project From Existing Code...
What type of project would you like to create? &#8594; Visual C++
Click on "Next"
Project file location: Browse to your folder (here C:&#92;MyTestProgram).
Project Name: MyTestProgram
Click on "Next"
Check the checkbox "Add support for MFC"
Click on "Finish"
Wait until your program is setup
Click on Project – Properties (or you can right click on MyTestProgram in the Solution Explorer and choose Properties)
Under Configuration Properties – C/C++ - General
For "Additional Include Directories", enter "./Shared;./SocketClient/src"
Do this for both "Debug" and "Release" (Configuration: at top)
Under Configuration Properties – C/C++ - Code Generation
For "Runtime Libraries", choose "Multi-Threaded DLL (/MD)"
Do this for both "Debug" and "Release" (Configuration: at top)
You should now be able to Build both the Debug and Release versions
Run the program, (in the debugger or C:&#92;MyTestProgram&#92;Release&#92;MyTestProgram.exe)
Click on "Connect..."
Change "Port" to the Socket Port noted above (7499).
Click on "Req Mkt Data..."
Change "Symbol" to "IBM" (or whatever)
Click on "OK"
You should now see IBM data being displayed
You can a lot of what is happening in the file "client2Dlg.cpp"
Whoops. Forgot one thing you need to do if you want to disable the "Accept incoming connection attempt" message TWS gives you when you try to connect. (This makes full automation easier.) In Trader Workstation, click on Edit-Global Configuration, then click on "General". Under "Trusted IP Addresses", click "Create" and add "127.0.0.1" then click on "OK" to save it.


Re: TWS API child order questions

cf16r
 

@raysalem619 did you really mean "minutes"?
can somebody tell this is not true in a real account?
I would like to see rather something less than second.


Compiling TestSocketClient

bbbvvgtm
 

I just downloaded the latest versions from IB. I wanted to compile/run/modify TestSocketClient, but ran into a couple of minor gotchas. So, I decided to document it in case someone else finds it useful.

I started with IB's Getting Started document:
I had some troubles in a couple of areas, so this is my getting started HowTo.

Download and install the standalone desktop version of IB's Trader Workstation
Start Trader Workstation
Click on Edit-Global Configuration
Make sure "Enable ActiveX and Socket Clients" checkbox is checked
Note the number in "Socket port." (Here I will assume it's 7499.)
Click "OK" to save the settings

Download and install the IB API
Create a new folder for your program. (Here I will assume it's C:&#92;MyTestProgram.)
Copy the following folders (and sub-folders) from IB's API location:
Shared
SocketClient
TestSocketClient
Launch Microsoft Visual Studio 2010 Professional Edition
Hopefully 2008 and 2012 also work.
I don't believe the Express Edition includes MFC and therefore will not work.
Click on File - New - Project From Existing Code...
What type of project would you like to create? &#8594; Visual C++
Click on "Next"
Project file location: Browse to your folder (here C:&#92;MyTestProgram).
Project Name: MyTestProgram
Click on "Next"
Check the checkbox "Add support for MFC"
Click on "Finish"
Wait until your program is setup
Click on Project – Properties (or you can right click on MyTestProgram in the Solution Explorer and choose Properties)
Under Configuration Properties – C/C++ - General
For "Additional Include Directories", enter "./Shared;./SocketClient/src"
Do this for both "Debug" and "Release" (Configuration: at top)
Under Configuration Properties – C/C++ - Code Generation
For "Runtime Libraries", choose "Multi-Threaded DLL (/MD)"
Do this for both "Debug" and "Release" (Configuration: at top)
You should now be able to Build both the Debug and Release versions
Run the program, (in the debugger or C:&#92;MyTestProgram&#92;Release&#92;MyTestProgram.exe)
Click on "Connect..."
Change "Port" to the Socket Port noted above (7499).
Click on "Req Mkt Data..."
Change "Symbol" to "IBM" (or whatever)
Click on "OK"
You should now see IBM data being displayed
You can a lot of what is happening in the file "client2Dlg.cpp"


Re: The following jar files is missing from the classpath: hsqldb.jar

btw12342001
 

Which file contains the command line?
Right click the shortcut icon and select properties.


Re: problem with contract details

dairen62
 

i received exactly the same answer... hope for a quick solution :)

--- In TWSAPI@..., clove2hitch <no_reply@...> wrote:

just got an answer from IB API support.
1 minute issue should be solved in near future(when???)

Unfortunately IB imposes limitations on the amount of contracts
that can be returned when invoking the reqContractDetails( ) method.
In this particular case it would be best to include additional
contract parameters which will narrow your scope.
Example if you include m_expiration and m_right then you can
determine all the available strikes for that particular expiration.
Alternatively if you include m_strike and m_right you can determine
all the available expirations.
But please note there are currently an issue that development is
working on with respect to Option Contracts. It seems even though
you include the m_expiry there still is a 1 minute buffer for
additional requests. Once this has been resolved I will provide
you a follow-up comment on this ticket with additional details,

--- In TWSAPI@..., clove2hitch <no_reply@> wrote:

Hi, i experience same issues!
the first request answers quickly then a second after 1 minute
then nothing... :-(

I updated TWS and API to use latest stuff but even worse
with the <>clients.exe crash (previous API clients versions don't crash).

I'm going to log the issue to IB.
Regards
CH

--- In TWSAPI@..., dairen62 <no_reply@> wrote:

Yes, when i try to take the options chain every call to reContractDetailsEx (with strike set to zero) lasts 1 minute instead the normal 6 seconds. I also notice that the demo program of the API (client3.exe) crash when you use "reqContractData". Can you try if you have the same problem?

thanks

--- In TWSAPI@..., "rwk2095" <r@...> wrote:



Is this still a problem? I just ran a program at 8:25 EST on 11 JUL, and everything appears normal on Globex (E6).

[rwk]



--- dairen62 <no_reply@> wrote:

hi everybody, i've a little program that that takes the chain of the options using the method reqContractDetailsEx (ActiveX). It worked fine till yesterday: every call to reqContractDetailsEx lasts 1 minute versus the 6 seconds of before yesterday. In this way the program is dramaticaly slow. Anyone experienced the same?


Re: The following jar files is missing from the classpath: hsqldb.jar

 

Thanks for your assistance with this. I tried starting TWS from the IB website. The script seemed to run a litle further after that as the username and password were entered and a log in attempt was made but then the same hsqldb message came up.

I'm using TWS 938.1 which starts and runs flawlessly if I open it by using the TWS icon on the desktop. I'm also using IBControllerV2-9-0 with the default command line. I must admit I don't even know where the command line can be found. I opened various files and did not see anything which looks like what has been posted in this thread. Which file contains the command line?

I do see the total.2012.jar file in C:&#92;jts directory.

Thanks
David

--- In TWSAPI@..., "BeeJay (GMX)" <bee_jay61@...> wrote:

If you post the the command you use to start the TWS, you should also
mention the TWS version number, cause this command is for older TWS
versions.

Most JAR files are now stored in one single JAR file: "total.2012.jar".

A more recent command is:

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar
-Dsun.java2d.noddraw=true -Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;Jts


Can you start TWS normally without using IBController? I don't use
that so am not sure how it works. The command I use to start TWS is
the default from the installation script.

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp
jts.jar;hsqldb.jar;jcommon-1.0.12.jar;jfreechart-1.0.9.jar;jhall.jar;other.jar;rss.jar
-Dsun.java2d.noddraw=true -Xmx512M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;jts

--- In TWSAPI@..., "DavidP" <af402469@> wrote:

Thanks for the reply, yes the file is in C:&#92;jts. The file I am
using is hsqldb-1.7.3.3 I also have the folder hsqldb-2.3.0 with
its contents as downloaded off the web. I run
sampleIBControllerStart and then it brings up the error message.

--- In TWSAPI@..., "btw12342001" <newguy@> wrote:

You don't mention if you actually have the file. The default
location in in the &#92;jts directory.

--- In TWSAPI@..., "DavidP" <af402469@> wrote:

Hi,

I'm just setting up on a new PC and I'm encountering the
following error message.

Fatal Error: one of the following jar files is missing from the
classpath: hsqldb.jar Please make sure you run the application
from the shortcut that was installed on your desktop or on the
Start menu when you upgraded.

I've not come across these before but I also got some regarding
jfreechart and jcommon which I seemed to overcome by
downloading and pasting into the appropriate folder. I cant
seem to get this one sorted though. Any ideas?

Thanks David



------------------------------------

Yahoo! Groups Links


Re: problem with contract details

clove2hitch
 

just got an answer from IB API support.
1 minute issue should be solved in near future(when???)

Unfortunately IB imposes limitations on the amount of contracts
that can be returned when invoking the reqContractDetails( ) method.
In this particular case it would be best to include additional
contract parameters which will narrow your scope.
Example if you include m_expiration and m_right then you can
determine all the available strikes for that particular expiration.
Alternatively if you include m_strike and m_right you can determine
all the available expirations.
But please note there are currently an issue that development is
working on with respect to Option Contracts. It seems even though
you include the m_expiry there still is a 1 minute buffer for
additional requests. Once this has been resolved I will provide
you a follow-up comment on this ticket with additional details,

--- In TWSAPI@..., clove2hitch <no_reply@...> wrote:

Hi, i experience same issues!
the first request answers quickly then a second after 1 minute
then nothing... :-(

I updated TWS and API to use latest stuff but even worse
with the <>clients.exe crash (previous API clients versions don't crash).

I'm going to log the issue to IB.
Regards
CH

--- In TWSAPI@..., dairen62 <no_reply@> wrote:

Yes, when i try to take the options chain every call to reContractDetailsEx (with strike set to zero) lasts 1 minute instead the normal 6 seconds. I also notice that the demo program of the API (client3.exe) crash when you use "reqContractData". Can you try if you have the same problem?

thanks

--- In TWSAPI@..., "rwk2095" <r@...> wrote:



Is this still a problem? I just ran a program at 8:25 EST on 11 JUL, and everything appears normal on Globex (E6).

[rwk]



--- dairen62 <no_reply@> wrote:

hi everybody, i've a little program that that takes the chain of the options using the method reqContractDetailsEx (ActiveX). It worked fine till yesterday: every call to reqContractDetailsEx lasts 1 minute versus the 6 seconds of before yesterday. In this way the program is dramaticaly slow. Anyone experienced the same?


The following jar files is missing from the classpath: hsqldb.jar

btw12342001
 

Thanks for the info. I'm using 927.7. I don't usually upgrade as long as everything is working and IB doesn't force me to.

--- In TWSAPI@..., "BeeJay (GMX)" <bee_jay61@...> wrote:

If you post the the command you use to start the TWS, you should also
mention the TWS version number, cause this command is for older TWS
versions.

Most JAR files are now stored in one single JAR file: "total.2012.jar".

A more recent command is:

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar
-Dsun.java2d.noddraw=true -Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;Jts


Re: problem with contract details

clove2hitch
 

Hi, i experience same issues!
the first request answers quickly then a second after 1 minute
then nothing... :-(

I updated TWS and API to use latest stuff but even worse
with the <>clients.exe crash (previous API clients versions don't crash).

I'm going to log the issue to IB.
Regards
CH

--- In TWSAPI@..., dairen62 <no_reply@...> wrote:

Yes, when i try to take the options chain every call to reContractDetailsEx (with strike set to zero) lasts 1 minute instead the normal 6 seconds. I also notice that the demo program of the API (client3.exe) crash when you use "reqContractData". Can you try if you have the same problem?

thanks

--- In TWSAPI@..., "rwk2095" <r@...> wrote:



Is this still a problem? I just ran a program at 8:25 EST on 11 JUL, and everything appears normal on Globex (E6).

[rwk]



--- dairen62 <no_reply@> wrote:

hi everybody, i've a little program that that takes the chain of the options using the method reqContractDetailsEx (ActiveX). It worked fine till yesterday: every call to reqContractDetailsEx lasts 1 minute versus the 6 seconds of before yesterday. In this way the program is dramaticaly slow. Anyone experienced the same?


Re: Need Information Regarding FIll Or Kill Order

 

If you have the same problem when using TWS alone, it is not an API problem.
You might still get help here but it is technically off-topic. Problems
should always be addressed in TWS first before API questions become
relevant. Otherwise you look in the wrong place for most problems. It is a
common mistake. First try things in TWS. Second if you have problems with
your code, try things in the API demo apps if possible. In your own code
make sure you are receiving error callbacks (and logging or otherwise
recording the information) so you can report all appropriate information
when you post a question.


You do not explain what you mean by "unable to get FOK value" when using TWS
alone. If FOK simply does not show up in the popup list, then you probably
have not enabled it in the Features under your TWS configuration. At the
moment I'm running IB Gateway so I can only run TWS in demo mode. But there
I see what I previously suggested to you. Under

Configuration > Features > Order Management > Time-in-Force

you must make sure Fill-or-Kill is checked. Is this your problem?

The curious thing is that IB Gateway does not seem to provide the Features
section. Perhaps this means all such features are turned on in IB Gateway.
If so using the Gateway might be something else for you to try, at least to
get more information, if necessary.

-K

On 7/12/13 12:24 AM, "narasingarao_kavali" <no_reply@...> wrote:


Hi Kurt,

Yes, i am placing order with API (with ActiveX API)

k.php%3Fib_entity%3Dllc
from the above link, we can place an order for stock for FOK Orders.

i have subscribed for Stock Instruments and placed order from my Application
with FOK as TimeinForce. but in IB TWS it is showing as Limit Order with Day
as the TimeinForce.

i have done same process in IB TWS also. but i am unable to get the FOK value
in TimeinForce for Stock also.

so, is there any scrip available to test this FOK order. ??

--- In TWSAPI@..., Kurt Bigler <kkb@...> wrote:

What you are stating is not quite clear.


On 7/11/13 3:36 AM, "narasingarao_kavali" <no_reply@...> wrote:

Dear Friends,

I am placing an order with Fillorkill as timeinforce which gives 'FOK'.
Do you mean you are placing an order via the API? You are specifying "FOK"
in timeinforce?

but
if i place an FOK order for any Stock (Which they specified in help) that
order is showing
What do you mean by showing? The Order echoed back to you by order
callbacks does not match the Order you passed to placeOrder?

The only think I can think of is maybe TWS requires that you enable the
order feature in order to use it via the API.

Have you tried placing the same order via TWS?

-Kurt

as limit order (LMT) with DAY as Time in Force instead of
Fillorkill (FOK).

please provide me any scrip available to test FOK Order for testing.


Re: Need Information Regarding FIll Or Kill Order

narasingarao_kavali
 

Hi Kurt,

Yes, i am placing order with API (with ActiveX API)

from the above link, we can place an order for stock for FOK Orders.

i have subscribed for Stock Instruments and placed order from my Application with FOK as TimeinForce. but in IB TWS it is showing as Limit Order with Day as the TimeinForce.

i have done same process in IB TWS also. but i am unable to get the FOK value in TimeinForce for Stock also.

so, is there any scrip available to test this FOK order. ??

--- In TWSAPI@..., Kurt Bigler <kkb@...> wrote:

What you are stating is not quite clear.


On 7/11/13 3:36 AM, "narasingarao_kavali" <no_reply@...> wrote:

Dear Friends,

I am placing an order with Fillorkill as timeinforce which gives 'FOK'.
Do you mean you are placing an order via the API? You are specifying "FOK"
in timeinforce?

but
if i place an FOK order for any Stock (Which they specified in help) that
order is showing
What do you mean by showing? The Order echoed back to you by order
callbacks does not match the Order you passed to placeOrder?

The only think I can think of is maybe TWS requires that you enable the
order feature in order to use it via the API.

Have you tried placing the same order via TWS?

-Kurt

as limit order (LMT) with DAY as Time in Force instead of
Fillorkill (FOK).

please provide me any scrip available to test FOK Order for testing.


Re: The following jar files is missing from the classpath: hsqldb.jar

BeeJay (GMX)
 

If you post the the command you use to start the TWS, you should also mention the TWS version number, cause this command is for older TWS versions.

Most JAR files are now stored in one single JAR file: "total.2012.jar".

A more recent command is:

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp jts.jar;total.2012.jar -Dsun.java2d.noddraw=true -Dswing.boldMetal=false -Dsun.locale.formatasdefault=true -Xmx768M -XX:MaxPermSize=128M jclient/LoginFrame C:&#92;Jts

Can you start TWS normally without using IBController? I don't use
that so am not sure how it works. The command I use to start TWS is
the default from the installation script.

C:&#92;WINDOWS&#92;system32&#92;javaw.exe -cp
jts.jar;hsqldb.jar;jcommon-1.0.12.jar;jfreechart-1.0.9.jar;jhall.jar;other.jar;rss.jar
-Dsun.java2d.noddraw=true -Xmx512M -XX:MaxPermSize=128M
jclient/LoginFrame C:&#92;jts

--- In TWSAPI@..., "DavidP" <af402469@...> wrote:

Thanks for the reply, yes the file is in C:&#92;jts. The file I am
using is hsqldb-1.7.3.3 I also have the folder hsqldb-2.3.0 with
its contents as downloaded off the web. I run
sampleIBControllerStart and then it brings up the error message.

--- In TWSAPI@..., "btw12342001" <newguy@> wrote:

You don't mention if you actually have the file. The default
location in in the &#92;jts directory.

--- In TWSAPI@..., "DavidP" <af402469@> wrote:

Hi,

I'm just setting up on a new PC and I'm encountering the
following error message.

Fatal Error: one of the following jar files is missing from the
classpath: hsqldb.jar Please make sure you run the application
from the shortcut that was installed on your desktop or on the
Start menu when you upgraded.

I've not come across these before but I also got some regarding
jfreechart and jcommon which I seemed to overcome by
downloading and pasting into the appropriate folder. I cant
seem to get this one sorted though. Any ideas?

Thanks David



------------------------------------

Yahoo! Groups Links