[gmpotter, I¡¯m writing this in response to your Direct Message to me this morning. Please don¡¯t do this again. If you don¡¯t get a response to a post, it may be because you¡¯ve asked something that no-one feels they can help with, or because you¡¯ve already been given enough information. If you still have a query, then post again with more details of what you need. Just don¡¯t pester people!...
?
Here¡¯s what you wrote:
?
I was hving Error1100 disconnection from TWS API and IB server, but after I tried to use IBC, the issue disappear. (My original post: /g/twsapi/message/51212)
?
Wondering if there is any kind of auto polling / heartbeat being implemented in IBC to TWS gateway, so that the gateway and IB server keeps in sync
?
For me, I also did some heart beat request like reqCurrentTime every minute and reqPosition every 5 mins as well but even with these two requests still hv error 1100. So just curious how IBC fixed this issue and work like a charm.
?
]
?
You seem to be misunderstanding something.
?
When your API client program is connected to the API, there are two TCP/IP connections involved: one from your program to TWS/Gateway, and one (or more) from TWS/Gateway to IB¡¯s servers (there is one connection to the account server, and other connections for market data, historical data, news, and son on, depending on what TWS and your program are doing).
?
The 1100 error message is sent to the API client by TWS/Gateway when the connection to the account server is lost (but your program is still connected to the API). As always with networking, there are many reasons why these connections can be lost, but it occurs most commonly during the nightly reset. When the condition that caused the loss is corrected, TWS/Gateway automatically re-establishes the connection(s) and send an 1101 or 1102 message to the API client (depending on whether market data has been lost). Note that this process is completely automatic: your API program doesn¡¯t have to do anything, and nothing it does can affect it in any way. So there is no possibility of your client program, or any program (including IBC), doing anything that will shorten the time between 1100 and 1101/1102.
?
And I¡¯ve already told you that IBC has no involvement in any of this. It doesn¡¯t know whether the client program has an API connection, in fact it doesn¡¯t know whether there is an API client program at all. So no, there is NOT ¡®any kind of auto polling / heartbeat being implemented in IBC to TWS gateway, so that the gateway and IB server keeps in sync¡¯, whatever that is supposed to mean.
?
So if your 1100 messages are no longer occurring, it cannot be because you have installed IBC. It just means that the condition that was causing the loss of connection has somehow been resolved.
?
Richard