rterp / SumZeroTrading

A Java API for Developing Automated Trading Applications for the Equity, Futures, and Currency Markets
http://rterp.github.io/SumZeroTrading/
Other
145 stars 48 forks source link

Automatically reconnect to TWS #9

Open rterp opened 8 years ago

rterp commented 8 years ago

When TWS is closed the EReader.run() method throws a java.io.EOFException, and the trading program stops execution. When TWS is restarted, the trading program must be restarted in order to reconnect to TWS. Update the Interactive Brokers classes to automatically reconnect to TWS when it is online again.