I am trying to run Lean locally but I am not able to set the "ib-version": "10.12" in lean.json file. It seems like IB changed the version numbers when they got to 1000. So 1012 is 10.12. I get this error message when having a decimal point in the version number.
‘System.FormatException: Input string was not in a correct format.’
This version gets installed at location ‘C:\Jts\ibgateway\1012’ If I change it to "ib-version": "1012". I get this error ‘Error
- Code: IbGatewayVersionNotInstalled - The
IBGateway version is not installed. - Version: 1012 - Path: C:\ibgateway’
A couple of things to note with this error message. The version number is not correct and the Path defaults to ‘C:\ibgateway’ When it should be ‘C:/Jts/ibgateway/1012’
If I set the version to a previous version below 1000 it fails because I don't have that version but does show the correct Path. Error:
Code: IbGatewayVersionNotInstalled - The
IBGateway version is not installed. - Version: 978 - Path: C:\Jts/ibgateway/978
I know there has to be some sort of workaround for this issue. Can anybody point me in the right direction?
Thank you.
Louis Szeto
Hi John
It looks like you haven't point LEAN to the directory of your IB Gateway through config.json in the Launcher folder. Try to fix the ib-tws-dir and ib-controller-dir fields in the config.json file with the actual paths to the TWS and the IBController folders respectively.
Alternatively, we recommend you to rebase the local LEAN version to the updatest to adapt to IB Gateway 10.x.
Best
Louis
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
John K
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!