Hi all, I'd like to develop my own trading programm which is using the IB API to submit trades and doing some other stuff. I read the Getting Started guide by IB and created a little demo application which is working fine so far. Now, I saw that the apidemo application by IB is using the package com.ib.controller. There is no real mention in any IB guide I found of how to use that package. Now, my question is. Should I use com.ib.controller for a new application? What are the advantages / disadvanages? Or is it better to use EWrapper and EClientSocket directly in my code as it is described in the Getting Started guide? Has anyone used com.ib.controller? thunder
I am currently working on using the Java API with Scala myself. I am not very thrilled with their documentation. They kind of just refer you to the sample app to figure it out for yourself. I created my own IBEventHandler class that implements the EWrapper interface. I am using their sample app as guidance, but basically you implement EWrapper and flesh out the methods as you need them. I'm currently working on the bare minimum implementation to retrieve historical data and display it in a GUI. Then I I'll probably look at adding real time data and order execution.
StatGuy, thanks for your answer. I completely agree with you. There's simply just no documentation about com.ib.controller. However, it's not too difficult to understand their democlient. I now started using the controller package. So far no problems with it.
I also found this recently which is a bit more helpful than their "Getting Started" guide: https://www.interactivebrokers.com/download/newMark/PDFs/APIprintable.pdf They at least explain in more detail what some of the classes are.