I saw an error when I deployed living trade:
Algorithm.Initialize() Error: InteractiveBrokersBrokerage.CheckIbAutomaterError(): UnknownMessageWindowDetected - An unknown IB message window was detected. - Unknown message window detected: Challenge: 766 474 Change input method Stack Trace: System.Exception: InteractiveBrokersBrokerage.CheckIbAutomaterError(): UnknownMessageWindowDetected - An unknown IB message window was detected. - Unknown message window detected: Challenge: 766 474 Change input method
......Does it means you are using IBKR client to do living trade ?
Why not use web api with oatuh ? It's easier and does not need re-login/2FA every week (As I know, traderspost.io is using it). see:
Mia Alissi
Hi Jack! Here’s what’s going on with your error and your question:
1. About the Error:
The message:
means QuantConnect detected an unexpected popup or prompt from the Interactive Brokers (IBKR) client while trying to automate the login/connection process. This usually happens when something on the IBKR desktop client (IB Gateway or TWS) asks for manual intervention, which the automated system can’t handle.
2. Does QuantConnect Use the IBKR Desktop Client?
Yes, for live trading, QuantConnect currently uses the official Interactive Brokers Gateway or TWS desktop client, not the IBKR Web API with OAuth.
3. Why Not the IBKR Web API with OAuth (like traderspost.io)?
4. What to Do?
Reference from QuantConnect Docs:
Summary:
Yes, QuantConnect currently uses the IBKR client and not the Web API with OAuth. That’s why you see those popups and need to handle 2FA every week. You're correct that OAuth (with the Web API) would make live connections easier—hopefully QuantConnect will add that in the future.
If you want guidance on best practices for avoiding popups or automating reconnection, just ask!
Sources: Interactive Brokers - QuantConnect.com, Getting Started - QuantConnect.com
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.
Jared Broad
Hi Jack! We're working on the recent auth issues with IB and will have a solution posted today.
The gateway is still the best cross platform, multi asset integration IB offers. It allows you to run LEAN on our cloud or locally with the same technology.
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.
Jack Wu
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!