Hello!
I'm having some trouble running a live deployment locally, but when I run it in the cloud it runs fine. The code is exactly the same and I'm using Interactive Brokers Data. If I run the live deployment locally I get this error but it doesn't break, I've tried looking for the error but couldn't find anything, has anyone experienced something similar?
Its a pretty simple code, I'm just trying to test the connectivity with IB
20230117 19:19:37.471 ERROR:: InteractiveBrokersBrokerage.HandlePortfolioUpdates(): System.Exception:
InteractiveBrokersBrokerage.MapSymbol(): Failed to convert contract for PYPL; Contract description: STK PYPL USD NASDAQ
0 0
---> System.MissingMethodException: Method not found: 'System.String
QuantConnect.Securities.IndexOption.IndexOptionSymbol.MapToUnderlying(System.String)'.
at QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersSymbolMapper.GetLeanSymbol(String brokerageSymbol,
SecurityType securityType, String market, DateTime expirationDate, Decimal strike, OptionRight optionRight)
at QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersBrokerage.a(Contract A_0)
--- End of inner exception stack trace ---
at QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersBrokerage.a(Contract A_0)
at QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersBrokerage.a(UpdatePortfolioEventArgs A_0)
at QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersBrokerage.a(Object A_0, UpdatePortfolioEventArgs A_1)
Louis Szeto
Hi Renata
There is too little information here for a debug, the best guess would be using an old version of the docker image of LEAN/the cli, or you're trying to subscribe a unsupported/unmapped ticker of the IndexOption asset class. Would you mind updating the docker image with `lean backtest --update` and updating the cli by pip install --upgrade lean? If it is still not working, please upload the Initialize() method of the algorithm for further assistant,
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.
Renata
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!