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 47 forks source link

IB Connection status #27

Open vinceyap88 opened 7 years ago

vinceyap88 commented 7 years ago

There are no status return for InteractiveBrokersClientInterface.connect() method. I have noticed that sometime it will fail to connect the IB. In this case, it is good to have this connect() method to return the status.

rterp commented 7 years ago

Agreed, the connect method could either return a true/false boolean status, or the method could throw an exception if it was unsuccessful in connecting.