开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

WG: twsapi: java api, maximum number of requests at a time ?


 

I think this is something the API is probably not meant for.
I think that IB wants to help their clients to do lots of profitable
trades, and that?s why they developed TWS and the API.

If you want to get a few hundred tickers at a time, my opinion is that you
should subscribe a datafeed somewhere else. eSignal and PCQuote have API?s
that might be useful to you.
They are specialised on providing real time data.

Marcus

-----Ursprungliche Nachricht-----
Von: usernew [mailto:no_reply@...]
Gesendet: Monday, July 01, 2002 11:37 AM
An: twsapi@...
Betreff: twsapi: java api, maximum number of requests at a time ?


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.

Join [email protected] to automatically receive all group messages.