Hi, long ago I was following the JSystemTrader Forum and now I'm back on JBookTrader.
I have a FA multi-account (behaves like an institutional multi-account in the given case). At this time JBookTrader is not working with multi- accounts, it just hangs after successful connection. This is because reqAccountUpdates' second argument should contain the account code in case of a multi-account. Otherwise, updateAccountValue() is simply not called. To allow for multi-accounts, program modifications would be minimal, as follows: (a) Add a field "Account" in Preferences (TWS Connection) underneath ClientID. This field is only required to be filled out in case the user is attempting to connect to a multi-account. Example of an entry would be DU20059 for a simulation account or it's alias name. This value would be stored in a variable: enteredAccount. (b) Method checkAccountType() in TraderAssistant.java should be modified as follows: socket.reqAccountUpdates(true, enteredAccount); INSTEAD OF socket.reqAccountUpdates(true, ""); socket.reqAccountUpdates(false, enteredAccount); INSTEAD OF socket.reqAccountUpdates(false, ""); That's it! It would be nice to have this minor modification in the next release. Thank you! -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.
