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.
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.