Just a quick note on the temporary disconnections, I also experienced a 6 
second break from a Linode server during March, very close to IB data 
center. But I guess tiny disconnects like these are inevitable. And as 
Eugene said, JBT handled it very gracefully and resumed trading as soon as 
the connection was back.




On Saturday, April 13, 2013 12:27:54 AM UTC+2, Eugene Kononov wrote:
>
> Hello kixxit, and welcome to the JBT discussion group.
>
> The JBookTrader is a great tool,with the purpose of some modification for 
>> my own need
>
>
> Can you describe the nature of your modifications? Perhaps I can merge 
> them into the trunk. 
>
> I try to understand the code,now I can't understand why the thread in 
>> ResubscriberRunner.java should sleep 1 hour before request MarketData when 
>> the connection to TWS is restored. 
>>
>>
> There are two types of disconnections:
>
> 1. Temporary disconnections because of the network. They occur about once 
> or twice for my setup (I have a very basic internet connection). They last 
> about 5 to 60 seconds, and when reconnection occurs, both TWS and 
> JBookTrader handle it gracefully, with normal market data flow and trading 
> resuming. No action on the part of TWS or JBT is needed.
>
> 2. Permanent loss of market data. This occurs at around the time when the 
> IB servers are restarting (typically around 12 midnight EST for me). After 
> the IB servers restart, by design TWS should restore the connection to the 
> servers, with no loss of market data flow. However, as several people 
> noticed, sometimes the market data freezes after the IB restart, so what 
> needs to happen is that JBT must resubscribe to market data explicitly. 
> This is what ResubscriberRunner is about. It will wait for an hour to let 
> things resolve themselves, and if not, it would unsubscribe from the market 
> data feeds, and resubscribe again. 
>
> Does that make sense?
>
>
>
>  
>
>
>
>
>
>
>  
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jbooktrader?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to