As previous replies suggested, IB should not be misused as a
data feed. For several resons it's not suitable for that.
But in your example, you can drop the disconnect/connect and
assign use new Contract Objects with the same TickerIDs. This way
you can retrieve an arbitrary number of quotes sequentially.
Gernot
--- In twsapi@y..., usernew <no_reply@y...> wrote:
I am using the Java API. When I send more than 40 or so requests
for
ticker info, I get the following exception:
Error: Max number of tickers has been reached.
Then I tried to do the following:
connect;
for(i=0, i < 40; i++) send requests;
capture info using event handlers;
disconnect;
connect;
for(i=0; i < 40; i++) send requests;
capture info using event handlers;
disconnect;
etc.
But the problem is each time there is a connect() call, someone
needs
to manually click on the "Yes" button on the dialog that
asks "Accept
incoming connection attempt?"
I want to be able to download info on few hundred tickers at a
time,
what should I do ?
Thanks in advance.