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

Allow time for user to click "Accept Connection" button on TWS before throwing Exception #11

Open rterp opened 8 years ago

rterp commented 8 years ago

Currently, there is no wait period for the user to click the "Accept Connection" button when the example App connects to TWS. In order for the app to work, connections from localhost must be accepted by TWS automatically.

Update the library so it will block up to 30 seconds before throwing a connection exception back.