-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to get open positions #32
Comments
I'll need to double check on this one. I've only been implementing the functionality as I have needed it, and it could be that the getAllPositions() method is currently stubbed out right now. I'll let you know. |
thanks for your replay. And i think maybe Position need a avgCost as its element. Ticker + size + avgCost can make a complete position structure. |
I started to implement this and then remember why I had not fully implemented it yet. There are builder classes to take a Ticker object and convert it into a Contract object which the IB API uses. However there are not yet any builders which will take an IB Contract object and convert it into a Ticker object. The IB position() callback method returns an IB Contract object, so I'll need to create a builder to translate this to a Ticker object. |
The text was updated successfully, but these errors were encountered: