Hi there,
I fail to deploy an algo for US equities on a account where I am holding long terms bonds. The algo raises the following error:
During the algorithm initialization, the following exception has occurred: Error connecting to brokerage: InteractiveBrokersBrokerage.MapSymbol(): Failed to convert contract for SRE; Contract description: BOND SRE USD 20521115 0 0. This may be caused by incorrect login credentials or an unsupported account type.InteractiveBrokersBrokerage.MapSymbol():
How to deploy an equities algo when bonds are already held independently in account ?
Thanks in advance
Best regards
S.Laignel
Mia Alissi
Hi Sebastien,
The error you're encountering is due to the fact that QuantConnect's live trading engine does not support live trading with unsupported assets on the portfolio. In your case, the long term bonds you're holding in your account are not supported, and this is causing the error during the algorithm initialization.
As a workaround, you can deploy your algorithm to live trading using a separate brokerage account or subaccount that does not have existing positions. This is recommended to avoid deviations between backtesting and live trading, as the live trading equity curve reflects your existing positions, but the backtesting curve won't.
Here is the relevant information from the QuantConnect documentation: Existing Portfolio Securities
And a related forum discussion: Error with deploying a live trading session
I hope this helps! Let me know if you have any other questions.
Best,
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.
Sebastien M. Laignel
Noted, thanks
Sebastien M. Laignel
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!