How to display the amount of cryptocurrency by Joe Bastulli

[ad_1]

Currently using self.Securities[symbol].Holdings.Quantity to see how much I am invested per symbol. When I run the algorithm live, the code just returns 0 even though I currently have more than 1 for multiple symbols. In the backtest, self.Securities[symbol].Holdings.Quantity works as expected. Should I use anything else to display the number of cryptocurrencies held?

Disclaimer

The content of this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy or a recommendation or approval for any security or strategy, nor an offer to provide investment advisory services. by QuantConnect. In addition, the document does not offer any opinion as to the relevance of a specific security or investment. QuantConnect makes no warranty as to the accuracy or completeness of any opinions expressed on the website. Opinions are subject to change and may have become unreliable for a variety of reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of capital. You should consult an investment professional before making any investment decision.

Sources

1/ https://Google.com/

2/ https://www.quantconnect.com/forum/discussion/7739/How%2Bto%2Bview%2Bcrypto%2Bholdings%2Bquantity

The mention sources can contact us to remove/changing this article

[ad_2]

Related Posts