|
Hello,
"Not sure if this is worth mentioning but I attended an API webinar
yesterday
with Jay Bailey and asked him about this issue. He mentioned that there is a 50 API message per second limit. If this limit is violated by client end, then the socket will disconnect." I am aware of the limit but I am not sure
then what he means by the "message".
IB plugin uses separate connection solely
for backfill and it does NOT send 50 messages per second,
never.
All it sends is one message (request for
backfill) and waits for the response. Response usually
arrives in 2 seconds. So it is one message sent per 2 seconds
and one response from IB.
If I can count it gives 1 message per second.
So It is not anywhere near touching 50 messages/second
limit in any way UNLESS
he understands the "message" as single line of historical data. But then - it would exceed the limit of 50 messages per second
with just 50 minutes of 1-minute bar
backfill which is also not the case.
So one way or another no one really knows how IB counts the
messages and how
to handle backfills without disconnects (see post
from other people on IB discussion boards)
"Jay highly recommended to write a loop of some sort iterating
every 1000"
Maybe he should simply update TWS API docs and provide at
least one real-world working sample
because right now all developers just have to "discover"
things because they are documented nowhere.
Best regards, Tomasz Janeczko amibroker.com
|
- Re: [amibroker] Re: IB Tick data backfill Tomasz Janeczko
- Re: [amibroker] Re: IB Tick data backfill Steve Dugas
- [amibroker] Re: IB Tick data backfill JD Fagan
