SumZeroTrading icon indicating copy to clipboard operation
SumZeroTrading copied to clipboard

Specify the Account

Open vinceyap88 opened this issue 8 years ago • 3 comments

Hi, Is there a way to specify the account number before starting the trading via the API? :)Vincent Yap

vinceyap88 avatar Jun 27 '16 04:06 vinceyap88

hmmm, I don't think that is there yet. What are you intending to use it for? Do you have a master account with multiple sub accounts?

rterp avatar Jul 05 '16 21:07 rterp

I intend to create a family account. I have added the account handling in InteractiveBroker.java and TraderOrder.java. You can review the diff and merge it if it is correct. InteractiveBrokersBroker.java.diff.txt TraderOrder.java.diff.txt

vinceyap88 avatar Jul 05 '16 23:07 vinceyap88

Changes look good @vinceyap88 If you want you can create a pull request to submit your changes to be merged into the mainline. Also, if there are any unit tests touching the InteractiveBrokersBroker and the TradeOrder classes, it would be good to test the new account number functionality.

rterp avatar Jul 08 '16 23:07 rterp