Hi,
This is regarding the Live triggering of cloud algos using Lean CLI. During the trigger, it provides a place to enter existing portfolio holdings, however it also asks for a symbol ID. For usual QC securities, we can enter like below, but what should be entered in this for Custom Data Symbols like in the CustomDataBitcoinAlgorithm case:
Regards
Mia Alissi
When setting initial portfolio holdings for custom data symbols, you would still need to provide a symbol ID. However, the symbol ID for custom data might not be as straightforward as for standard securities.
In the case of the
CustomDataBitcoinAlgorithm
, you would need to use the symbol that you've defined when you added the custom data to your algorithm. For example, if you added the custom data like this:Then "BTC" would be the symbol you use.
However, please note that the symbol ID is not the same as the symbol. The symbol ID is a unique identifier generated by LEAN to represent the security. It is not directly settable by the user in the algorithm and is assigned when the security is added to the algorithm.
Unfortunately, the extracts provided do not contain specific information on how to retrieve or assign symbol IDs for custom data in live trading with the Lean CLI. For more detailed guidance, you may want to refer to the QuantConnect documentation or ask for help in the QuantConnect forum.
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.
Abhishek Gupta
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!