¿ªÔÆÌåÓý

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

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

btw12342001
 

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:\WINDOWS\system32\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:\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


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

 

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


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

vanx23_alias
 

Hi David,

I do format one of the computer's partitions and re-install everything from scratch every 6 months. I stumble into this error each time.

At first, I was puzzled with this and was wondering what I was doing wrong. I couldn't pinpoint the root cause of this, but I found out that running another web based java application will miraculously make the web based TWS find everything it needs.

This bug is easy to reproduce:

1) Format partition
2) Install OS and all required updates (In my case: Windows Server 2008 R2-x64)
3) Install latest Java Virtual machine (In my case: Java x86)
4) Make sure the Java plugging is working fine, by using the "Java Version Verifier" on the Java web site.
5) Finally, try lauching TWS from the InteractiveBrokers web site.

Result: Boom! The missing jar's components will appears.

After running the TMX's QuoteStream java web application, from QuoteMedia, everything will work fine for TWS.

This is NOT something new. As far as I remember, I've been having this error for at least 2 years now. I've always wanted to report this bug to IB. Then, having the burden to prove IB the bug is on their side, kept my procrastinating to report it. As far as I have a work around, I keep procrastinating.

I'm surprised that not much people have come across this bug. On the other hand, I guess not much people run TWS, as the first Java application, right of the bat, after having re-install and setup the OS.

I know it's not a solution per say. But it may help you to stop searching for something wrong in your installation, which I'm sure is perfectly fine.

As a side note:

Although I've been silently monitoring this forum for more than a year now, I would like to take the opportunity of this first post/reply to salute all the contributors. Comments on this forum are always constructive, which is much appreciated.

Regards, Mike

--- 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


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

btw12342001
 

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


Re: Need Information Regarding FIll Or Kill Order

 

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.


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

 

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


Re: problem with contract details

rwk2095
 

I ran an app to retrieve the option chain for one expiry (201309 for CL), and it seems to work okay with edemo.

I tried client3.exe, and I get error 200: no contract, but it does not crash. This again was with edemo. The sample program is so hard to use, it may not be possible to get futures options info with it.

[rwk]



--- 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: Intraday to Overnight Margin Requirements

rwk2095
 

Futures margin (formally known as performance bond) is mandated by the regulators. Brokers are free to require more for their own protection, but they may not require less. The trader's exact margin requirement varies continually under SPAN and is very hard to estimate.

I don't know if IB has preferred customers, but I wouldn't be surprised if very small accounts are disfavored in some way. IB does automated enforcement of it's rules, so violators get no warning. My own experience has been that at much over 50% margin utilization, the account is so hot that proper risk management becomes unworkable.

[rwk]



--- "Patrick Connell" <patrickoberconnell@...> wrote:

I transferred to IB about a month ago for the commissions. I trade futures and am disappointed with the Margin Requirement increase from Intraday to Overnight at 12:45 Pacific Time on the E-Mini's. But also on any commodities 15 minutes before the pit closes. I got slammed my first day trading because I wasn't prepared for it, but regardless it's frustrating considering how much volume and volatility there is the last 15 minutes before the bell. I didn't run into this issue with TD/Think or Swim, I also gave Trade Station a call and they don't increase the Margin Requirement's until 1:15 on the E-Mini's. IB doesn't have anything in writing on their website in regards to what time exactly they change the Margin Requirements from Intraday to Overnight, I was wondering if possibly they provide preferential treatment to certain customers... Anybody have any input?


Re: problem with contract details

dairen62
 

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?


Need information regarding Order Modification

narasingarao_kavali
 

hi Friends,

I am developing IB Setup by using ActiveX plugin which was provided by IB. by i am able to retrieve Market data and able to place order and can modify the order as well as cancel the order from my application.

If user modifies the order in IB TWS then how will my application will get the modified information.

i.e if i place an order for "ABC" from my application with quantity as 10 then i can modify this order from my application as 15 but user has changed this order at IB TWS. then how can i modify in my application value (From 10 to 15) ?

Please help me here.


Re: TWS API child order questions

raysalem619
 

Your first question is very interesting and i am in the same boat (read all responses, looks there was no clear answer)

I need to emphasize order speed over slippage, and have noticed limits are much slower then market order, (EUR.USD, tested in a demo account)

So basically i want to place a market order(entry), with a trailing order (protection), as a bracket order. and must use the market order, limit seems to be to slow (i have seen it take minutes on the demo account, not sure if this is a demo issue), but dont want to test it with real money

i cant understand the rationale now for not supporting this.

-Ray

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

Hi,

I am writing a forex scalping program with IB POSIX C++ API,

there is one question:

I need to submit one parent order and attach one trailing stop order and one profit taking order.

parent order is market order as I don't want to miss any opportunity, filling as fast as need. but trailing order can't be attached to market parent order.

if I attach a stop order first, I am not able to change it to TRAIL type later.

So what kind of solution you use?
1. submit parent order with limit order, you could put limit price higher than market price (for buy) to simulate a market order, but in this case I have to track the bid/ask as fast as I could, I don't even know IB is capable of it (no real tick price and latency between my computer and their servers).

2. submit parent order with MKT type, no child order, put a trailing order afterwards?

3. manually implement a TRAIL order by modifying stop price for STP order attached whenever necessary.


Second question,
m_pClient->placeOrder(m_orderId, m_contract, order_parent);
m_pClient->placeOrder(m_orderId + 1, m_contract, order_stoploss);
m_pClient->placeOrder(m_orderId + 2, m_contract, order_profittaking);


trying to make a MKT parent order,
and two child orders, one sl with STP type, one tp with LMT type.

problem is,

I have to submit three orders in turn. parent order first.
but after I submitt the parent order, it will be filled immediately.

child orders will produces error msg like:

Error id=59, errorCode=201, msg=Order rejected - reason:The parent order is bein
g canceled.

And another question, In TWS, I am able to submit stop with stop price of actually traded price of parent order, How should I do it via API? the trade price of parent order is unknown when submitting attached child stop loss order.

right now,
I am submitting two child orders with very wild sl and tp level and modified it once parent order gets filled. apparently this is not a good solution


Any idea?

Thanks a lot for your help!


Re: problem with contract details

rwk2095
 

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?


Need Information Regarding FIll Or Kill Order

narasingarao_kavali
 

Dear Friends,

I am placing an order with Fillorkill as timeinforce which gives 'FOK'. but if i place an FOK order for any Stock (Which they specified in help) that order is showing 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.


Intraday to Overnight Margin Requirements

Patrick Connell
 

I transferred to IB about a month ago for the commissions. I trade futures and am disappointed with the Margin Requirement increase from Intraday to Overnight at 12:45 Pacific Time on the E-Mini's. But also on any commodities 15 minutes before the pit closes. I got slammed my first day trading because I wasn't prepared for it, but regardless it's frustrating considering how much volume and volatility there is the last 15 minutes before the bell. I didn't run into this issue with TD/Think or Swim, I also gave Trade Station a call and they don't increase the Margin Requirement's until 1:15 on the E-Mini's. IB doesn't have anything in writing on their website in regards to what time exactly they change the Margin Requirements from Intraday to Overnight, I was wondering if possibly they provide preferential treatment to certain customers... Anybody have any input?

Thanks.


Re: problem with contract details

 

My app, whenever it launches, requests contract details for a certain saved
set of contracts (not a chain). Some of them are obsolete and I have not
cleaned them up and for these I get the error 200 "No security definition
...". I am using the app for other things so did not pay attention to all
the details, but what shows up on my log are the error 200's and they are
now coming much slower than before. It appeared earlier that when launching
my app it took several minutes for it to finish all the error 200's and I
did not look into it further. It appeared at one point that a historical
data requests did not get a result back until the last contract details
request finished, but I am not sure about that.

So it did make me wonder whether IB started throttling contract details
requests but I have not looked into it since things I need are working for
me at the moment.

-Kurt

On 7/11/13 1:07 AM, "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?

thanks
Enrico


problem with contract details

dairen62
 

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?

thanks
Enrico


Re: IB's definition of Timezones

 

Hi souqMate,

I am using version 968 from the begining I am using the API and I never did an update so I guess the change appeared only in this version. I think IB change the timestamp on the 22 of June and for sure it was before the 1st of July, when I found out about this.

Thanks for the answer regarding GLOBEX, never though of that.

Pierre

--- In TWSAPI@..., "Carlos" <ctalmeida@...> wrote:

I am using activex api 968 and TWS 939, that makes my data actually come all in exchange local time, not my local time anymore.

Before that I was using TWS 936 and getting times on historical in my local time, then I do not know exactly when the change happened, do not know if there was a 937, 938 version that will have the change.

Thanks


--- In TWSAPI@..., "souqmate" <souqmate@> wrote:

Pierre says the change has been since end of June, while Carlos says it comes with TWS 939. Pierre, have you changed TWS or API or java version?
I haven't observed any change, and still get my data in my local time.
I'm using TWS 939 on Ubuntu 12.0 and Java(TM) SE Runtime Environment (build 1.7.0_21-b11).
Pierre, what you call ECT is probably IB's CET; also note that Gbobex futures are in Chicago time, not NY time.
souqMate.

--- In TWSAPI@..., "pierre.dimayo" <pierrechristophe.dimayo@> wrote:



I experienced the same kind of problem. Apparently, since end of June, timestamp of the prices requested within the API are those from the exchange of the securities you are requesting the prices for, regardless of the timezone from which you are doing the request. I am in Europe and I am working mostly with stocks and future. Since I need all my prices to be at ECT I need to add +6 to the timestamp for US stocks, +1 for UK stocks -7 for Japanese stocks for example. For Globex (futures) things get weird as it appears that the timestamps for futures are 1 hour later than Eastern time. (so I have to adjust with +7). So I advise you to do some tests for each exchange you are downloading the information from and adjust accordingly by comparing to the previous data you have.

I had a quick chat with the helpdesk who confirmed the change in the timestamps and it seems that this change will be permanent.

Cheers

Pierre

--- In TWSAPI@..., "Carlos" <ctalmeida@> wrote:

I have been downloading historical data from IB for years.
I never use the timezone on the request.
I always received the data date and time of the local computer.
Then if my windows is set for Pacific Time I received 1 minute bars for IBM starting 6:30 until 13:00.

Yesterday I update my TWS to the 939 version with API 9.68
Now same data request comes in EDT time, that is same data request now comes with time from 9:30 to 16:00. If I install back the TWS 936 I get back what I had in the past 6:30 to 13:00.

I can change my code and make all work but is there a mistake somewhere from IB that they will revert back in the future or this is how will be from now on? Anyone has information on this?

BTW I did try with FOREX EUR/USD and the same in the past historical data would come with my local computer time and now it comes in EDT.

Thanks for any information.

--- In TWSAPI@..., "Robert" <robertrackl@> wrote:

My policy is to keep time internally in UTC (=Zulu=GMT). Conversion to/from local time takes place only when user interaction is required. This way you don't worry about clocks getting set forward or backward.

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

You don't have to specify a time zone. I just do the request and ask for a unix timestamp by specifying 2 in the last field. Then you don't need timezones. If you want it in local time then just use the date class to put the unix time automatically into the right EST or EDT.

For those syncing clocks, don't you worry about having a later tick arrive with an earlier time if your clock gets set backwards? There is a way to do this properly in the win32 API but it's complicated. You can read further starting here
(v=vs.85).aspx



--- In TWSAPI@..., "pier3846" <hf-trader@> wrote:

Hello all,

I am having troubles with timezones when requesting for historical data with the Java API.

The API guide provides a list of supported timezones:



1) This list seems to be incomplete as CET seems to be also supported.

2) More important, I can see that EDT is not supported therefore I wonder what is IB's definition of EST. Specifically, I wonder whether IB's definition of "EST" encompasses "EDT" too. In other terms, do they use "EST" all the year, even during summer time? Or is "EST" really the "EST" timezone, with a shift of one hour compared to EDT, as those timezones are defined in Java, for instance.

I do not find much information on this topic. Anyone has an experience with timezones and the TWS API?

Thanks!!

Pierre


Re: Getting error for SI contract specification

 

I set the multiplier.


________________________________
From: Davqe <drosen@...>
To: TWSAPI@...
Sent: Wednesday, July 10, 2013 8:18 PM
Subject: [TWS API] Re: Getting error for SI contract specification



?
This is exactly what happened. They added a mini-Silver future with the same underlying and expiration date. I was able to correct it by specifying the localSymbol member of the Contract object.

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

Did they add a new multiplier today?

The same thing happenned with stock options when mini options were
introduced for higher-priced stocks several months ago.

-Kurt


On 7/10/13 5:42 AM, "Davqe" <drosen@...> wrote:

This morning I received the error that my contract specification for Silver
was ambiguous because I did not specify the multiplier. Is this new? I was
able to run the same program last night at 9am with no problems.



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


Re: Getting error for SI contract specification

Davqe
 

This is exactly what happened. They added a mini-Silver future with the same underlying and expiration date. I was able to correct it by specifying the localSymbol member of the Contract object.

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

Did they add a new multiplier today?

The same thing happenned with stock options when mini options were
introduced for higher-priced stocks several months ago.

-Kurt


On 7/10/13 5:42 AM, "Davqe" <drosen@...> wrote:

This morning I received the error that my contract specification for Silver
was ambiguous because I did not specify the multiplier. Is this new? I was
able to run the same program last night at 9am with no problems.


Re: Getting error for SI contract specification

 

Did they add a new multiplier today?

The same thing happenned with stock options when mini options were
introduced for higher-priced stocks several months ago.

-Kurt

On 7/10/13 5:42 AM, "Davqe" <drosen@...> wrote:

This morning I received the error that my contract specification for Silver
was ambiguous because I did not specify the multiplier. Is this new? I was
able to run the same program last night at 9am with no problems.