¿ªÔÆÌåÓý

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

Question concerning Java


ed2000nl
 

hi,

I wonder if there is some example code in JAVA to make a link with a
single or multiple cell(s) in the TWS. For instance to make a link
with the last price of e.g. CSCO or a range of last prices. This all
using the Java Client Socket. So I'm not interested in DDE actually.

I have found 5 Java files: Contract.java, EClientSocket.java,
Ereader.java, EWrapper.java and Order.java. Compiled it and put it in
a jar file. I am able to get the TestJavaClient working. However it
would be very nice if I could get some more info about how to get a
multiple link working between real-time prices of stocks or bid and
ask cells etc.

A small example code would be very helpfull and could enable me to
link a Java program I am writing to the TWS.

thanks in advance,

regards, edward


skunktrader2001
 

--- In twsapi@y..., "ed2000nl" <empottasch@y...> wrote:
A small example code would be very helpfull and could enable me to
link a Java program I am writing to the TWS.
A great place to start would be to look at the files in the
TestJavaClient folder.


ed2000nl
 

hi,

yes this software I used to make this test application. What I would
like to know if someone has some example code that makes a link with
a real-time price. Possible the code in the TestJavaClient folder
incorporates this but it is not easy to find ....

rgds, Edward


--- In twsapi@y..., "skunktrader2001" <gdarke@b...> wrote:
--- In twsapi@y..., "ed2000nl" <empottasch@y...> wrote:
A small example code would be very helpfull and could enable me
to
link a Java program I am writing to the TWS.
A great place to start would be to look at the files in the
TestJavaClient folder.