AW: twsapi: Java API
You should look at EClientSocket.java:
It spawns an asynchronous thread with
tm_reader = new EReader( this, dis);
The wrapper functions are called from this thread whenever a message is
received
by
By
gernot.ullrich@...
·
#125
·
|
Re: twsapi: Java API
yep, I am pretty sure that all that requestData() does
is read data that has arrived from TWS, and call the
appropriate EWrapper member function for tickPrice
etc.
If it was async, there would be no
By
Todd Turner <todd_a_turner@...>
·
#121
·
|
Re: twsapi: Java API
You should look at EClientSocket.java:
It spawns an asynchronous thread with
tm_reader = new EReader( this, dis);
The wrapper functions are called from this thread whenever a message
is
By
gu6526 <gernot.ullrich@...>
·
#122
·
|
Re: twsapi: Java API
usernew,
maybe i do not know what you want or misunderstand TWS control but you need to send requestData() only once - you can do it before the session.
David
By
David <kotomo@...>
·
#123
·
|
Re: twsapi: Java API
I need to get info on n tickers, so this is what I do at the moment:
tws.connect();
for(i=0; i<n; i++){
tws.requestdata(...)
}
tws.wait_trans(); // to make sure all the prices have
By
usernew <no_reply@...>
·
#124
·
|
Re: twsapi: Java API
There are basically two methods to do this:
1. wait() / notifyAll() communication
In your main program use wait() to go to sleep without polling.
Catch the interruptedException and go on.
In the
By
gu6526 <gernot.ullrich@...>
·
#126
·
|
C# .NET + TWS ActiveX = 'Catastrophic failure' exception?
I have connected fine using Java and C++ API to TWS, however using
Visual Studio.NET and C#,
I get
'An unhandled exception of type:
System.Runtime.InteropServices.COMException
occured in
By
pjslim99 <trader@...>
·
#127
·
|
Timing of events
Hello,
I'm evaluating TWS ActiveX component in Visual Basic and I have some
questions/problems regarding 'tickPrice' and 'tickSize' events (I'm
using the web based Demo system for this
By
migurull <migurull@...>
·
#128
·
|
Re: Timing of events
Both tickPrice and tickSize are autonamous of one another. Further
they only fire when there is a change.
An example would be 10 trades going off at the same price at
different volumes would fire
By
marinindextrader <marinindextrader@...>
·
#129
·
|
Re: twsapi: Re: Timing of events
Thanks Scott, this is as I understand it.
So there is no way to detect various trades at the same price and size?
This could be a very bad issue because it is important (at least for me, and
I think
By
Michel <migurull@...>
·
#130
·
|
Re: twsapi: Timing of events
When I started working with TWS ActiveX with VB I explored tickPrice and tickSize first.
My observation was that either event occurred once a second and only if a number changed.
You could build a set
By
Robert Carey <rcarey1@...>
·
#131
·
|
Re: twsapi: Re: Timing of events
Abandon the thought of computing volume from IB's data.
You will only get a small fraction of all ticks from IB. Okay for
some things, but not anywhere near a full data feed.
Richard
} Thanks
By
Richard Foulk <richard@...>
·
#132
·
|
Re: twsapi: Timing of events
Michael,
If you use a common function for both price and size, you will see that the price comes first but as one person stated correctly they would have to be independent events.
So when a new price
By
David <kotomo@...>
·
#133
·
|
Re: updateExtended(), extended properties, etc, etc
Hi,
If you are still wondering how to place an OCA in VB, I did some
testing today and was able to get it to work. Here's what you do:
The OCA property has a default value of null (""). Set this
By
BrianL_98 <brianl_98@...>
·
#134
·
|
Re: OCA updateExtended(), extended properties, etc, etc
...thanks for keep us up to date......seriously
...post any and all peculiarities you find with the OCA process...
Scott
property
()
By
marinindextrader <marinindextrader@...>
·
#135
·
|
Why does IB API renumber order id's after internet disconnect?
This message was originally posted on IB's API forum. I Thought it
worthy of our archives and discussion.
Posted on Wednesday, June 19, 2002 - 06:26 am:
By
marinindextrader <marinindextrader@...>
·
#136
·
|
Demo Server Question
To any and all...
I have never used the demo server.
I have always used my accounts...for testing
What is up with the demo server? When I fire up my client side TWS
what special user name and
By
marinindextrader <marinindextrader@...>
·
#137
·
|
Please, help
Hi,
I am working on my VB API for IB platform. Thanx to ppl like you,
everything starting to work just fine.
BUT..
I wasted 1 week trying to send limit order from my box.
what is wrong with this
By
multicen2002 <no_reply@...>
·
#138
·
|
Re: twsapi: Please, help
First, your ORDERID - 1 could be a PROBLEM - generate a larger number and increase by delta of 10 or more ( still first order may cause duplicate error - keep trying or increase first and then place
By
David <kotomo@...>
·
#139
·
|
Re: twsapi: Please, help
Thank you for trying David.
But again it is not working.. everything else works fine.
Anybody know how to solve my 1 week long torture with this line ??
Please, post a sample code line which really
By
multicen2002 <no_reply@...>
·
#140
·
|