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

What exactly does the server version mean? #155

Open
tredondo opened this issue Mar 22, 2020 · 3 comments
Open

What exactly does the server version mean? #155

tredondo opened this issue Mar 22, 2020 · 3 comments

Comments

@tredondo
Copy link
Contributor

.on('server', version => console.log(version)) always shows 76, whether I connect to Gateway 972, or to TWB 979.

What does the server version field mean?

@nemozny
Copy link

nemozny commented Apr 8, 2020

I think it is API version.
I haven't seen a word about how this works, but from pilwon's comments somewhere in the code in here I've understood 76 is the last old (non-V100plus) version.
If you manage to get v100plus handshake working, you actually report to IB gateway a range of versions (i.e. v110..152) in your v100plus handshake, based on the functionality you implemented in your client (see constants.js).
So in order to get functionality 100+ working (with some exceptions I also saw in the code here), you have to have v100plus.

@tredondo
Copy link
Contributor Author

A year later, I still get 76 with TWS 981.

I see a [lot of ifs based on the version in lib/incoming.js, deciding what fields to dequeue. Where are these versions listed? How can we find out at which version a given field has become available? Does that even matter, since most servers will be on the latest version anyway?

@nemozny
Copy link

nemozny commented Aug 18, 2021

There is 76, because nobody implemented the v100plus handshake. If you tell IB servers any higher version than 76, they will expect the handshake.
I've switched my IB client and language since the last comment, so don't look at me.

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