Skip to content
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 support newer versions of the IB API #143

Closed
tredondo opened this issue Jul 9, 2019 · 1 comment
Closed

How to support newer versions of the IB API #143

tredondo opened this issue Jul 9, 2019 · 1 comment

Comments

@tredondo
Copy link
Contributor

tredondo commented Jul 9, 2019

@pilwon, I know you no longer have time to maintain this project, but since you mentioned you'd be willing to accept PRs, ca you give us a few guidelines about how to add support for new order fields, and how to increase the version number of the IB API that the package supports? The goal is to add support for newer fields, e.g. all the Order fields.

I've looked at diffs for commits like this but I wasn't able to increase the supported API version.

Looks like this library's CLIENT_VERSION is 62, while the current one from the TWS Java API is 66. I've tried changing the version to 63, but the placeOrder example freezes (no data is received).

Any idea why that's happening?

Also, what does "41" mean here? some server version? MIN_SERVER_VERSION goes up to 130 though. Why 41?

@pilwon
Copy link
Owner

pilwon commented Jul 12, 2019

Hi @meteorpublish, here is my reply to your question but I am not sure if this is what you're looking for.

When I first ported this library back in 2013, I (mostly) directly ported it from the official Java library (please refer to ref directory). You may find clues to some questions by digging the matching Java code under this reference directory.

There's no easy, automatic way to increase the version number. You need to manually check updates and apply patches. I suggest starting with diffs between ref directory against the latest version of Java client library. Please carefully pay attention to any change in IB socket protocols because you can accidentally break something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants