heshiming / ibga

IB Gateway in a headless docker container.
GNU General Public License v3.0
23 stars 3 forks source link

Use stable version of gateway instead of latest #6

Closed kayazinc closed 2 years ago

kayazinc commented 2 years ago
 IB Gateway Installation 1
----------------------------
• will install into /home/ibg
• will use the existing installer: /home/ibg/ibgateway-latest-standalone-linux-x64.sh ...
• installing ...

From the docker log, it seem that IBGA download and install the latest version of ibgateway. May i suggest to use the stable version instead?

The benefits of stable version are:

heshiming commented 2 years ago

I'm with IBKR long enough to remember a "stable version" offer. However, I think they have phased that out, probably during the Log4J fiasco. Right now, if you go to their website and click "Download IB Gateway", no stable version is offered.

kayazinc commented 2 years ago

Latest version

https://download2.interactivebrokers.com/installers/ibgateway/latest-standalone/ibgateway-latest-standalone-linux-x64.sh

If i am correct, the following url contains the stable version.

Stable version

https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh

ref: https://www.interactivebrokers.com/en/index.php?f=16457&ns=T

edited: url changed for IB gateway instead of TWS.

heshiming commented 2 years ago

I understand that's a googled page. It's not linked from IBKR's website. Or did you find one?

Yes I could've allowed changes from 'latest' to 'stable'. However, I hope not to spend extra time for something already phased out. There has to be a reason they are not linking to this 'stable version' from their website. It might not be working.

kayazinc commented 2 years ago

It's from interactive broker website: https://www.interactivebrokers.com/en/index.php?f=16457&ns=T

Just change the OS from window to linux > Download for Other Operating Systems

The download button will link to https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh

heshiming commented 2 years ago

So how did you get to https://www.interactivebrokers.com/en/index.php?f=16457&ns=T ? Where is this page linked from the website?

To me, I go to www.ibkr.com, click "Log In" at top-right, then click "Download IB Gateway". It leads me to the "latest" version. I found no link to a "stable" version there.

kayazinc commented 2 years ago

Oh i see what you mean. Yes, i googled the website link. I don't know where the root link is from.

heshiming commented 2 years ago

Exactly! I remember having dual download options on that page before. The stable version was removed and it has to be intentional.

kayazinc commented 2 years ago

You could be right that it might be intention, but the version 10.12 has to be correct, so it shouldn't be a orphan page.

Nevertheless, shall leave to your discretion on which version you intended to use. Feel free to close this issue, thanks!

heshiming commented 2 years ago

Yup, I agree that this would be useful, considering the the very first pull request of this project is regarding a custom download URL. I'll figure something out, via an environment variable or similar.

heshiming commented 2 years ago

With the latest update, you can use the following environment variable in a docker-compose service node to point to the stable version:

environment:
  - IBG_DOWNLOAD_URL=https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh