In this QuantConnect University algorithm we import Bitcoin daily data and use it as a tradable security! The boilerplate strategy just buys $100k BTC and holds until today.
This as an example of how import custom data. You can either use custom data as indicators, or in this case use data to create a *fully fledged security* for trading. Because its daily data the backtest takes a few seconds :)
Data has been imported from Quandl. I'd recommend signing up there and getting your own API key. Append your access token to the data source URL.
Romina Fernández
Jonathan Evans
Jared Broad
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.
Jonathan Andre
I just recently had a look at the code and I see that Quandl is only giving daily data. In there anywhere where one can import more higher resolution data for BTC and other cryptocurrencies?
Keith Ferry
I've attempted to clone this algo and added data from my own API key, but the backtest doesn't yield any results. Can you update this thread?Â
Varad Kabade
Hi Keith Ferry
This being an old thread, there have been many changes with Lean/QC. QC now provides crypto data without the need to use custom data. Refer to the docs on crypto and following example algorithm.
Best,
Varad Kabade
Jared Broad
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!