I am trading through IB. There are are some positions belongs to NBR in my account.
The first Fill of NBR is 2021 - 03 - 29 and the last Fill is 2021 - 06 - 07. I received error message at 2021 - 06 - 12. Here is the error message:
During the algorithm initialization, the following exception has occurred: Error connecting to brokerage: InteractiveBrokersBrokerage.MapSymbol(): Failed to convert contract for NBR;
Contract description: WAR NBR USD VALUE 20260611 166.6667 C.
This may be caused by incorrect login credentials or an unsupported account type.InteractiveBrokersBrokerage.MapSymbol(): Failed to convert contract for NBR;
Please manually close the position or cancel the order before restarting the algorithm.
Questions:
- Is it an issue from IB or from QC?
- Is it the other choice is to close the position manually?
- How can my algo perform those trades while now I cannot start the alog?
Thanks
Derek Melchin
Hi Ka Ho Cheung,
LEAN doesn't support warrants, so they need to be removed from the portfolio in order for the algorithm to start.
Best,
Derek Melchin
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.
Ka Ho Cheung
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!