Hello all,
Just wondering if there is a list of cryptos avialable or if you can use a 'universe selection' for cryptos?
Don't have an account? Join QuantConnect Today
QuantConnect Community Discussions
QUANTCONNECT COMMUNITY
LEAN is the open-source algorithmic trading engine powering QuantConnect. Founded in 2012 LEAN has been built by a global community of 180+ engineers and powers more than 300+ hedge funds today.
Join QuantConnect's Discord server for real-time support, where a vibrant community of traders and developers awaits to help you with any of your QuantConnect needs.
The Open-Quant League is a quarterly competition between universities and investment clubs for the best-performing strategy. The previous quarter's code is open-sourced, and competitors must adapt to survive.
Refer to our Research Guidelines for high quality research posts.
Create an account on QuantConnect for the latest community delivered to your inbox.
Sign Up Today
|
|
|||||||
|
|
||||||||
|
Crypto assets
Alexander Kool | May 2020
Hello all,
Just wondering if there is a list of cryptos avialable or if you can use a 'universe selection' for cryptos?
QuantConnectâ„¢ 2025. All Rights Reserved
Rahul Chowdhury
Hey Alexander,
You can find a full list of the cryptopairs supported for both GDAX and Bitfinex in the documentation.
Unfortunately, there isn't currently a built-in universe selection for cryptocurrencies. However, you can use custom universe selection model.
I've attached an example of creating a custom universe selection model for cryptocurrencies.
Best
Rahul
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.
HughStryker
Hi Rahul, can you extend your backtest a bit more to include some filtering? I have observed that the list returned by the Se≤c→r method alters the contents of data in OnData, but I'm struggling to see where the filtering takes place given that there are no trade or quote bars available in the Se≤c→r method.
Also, the Debug statement in OnData returns, "Symbols in Slice: ['BTCUSD E3', 'ETHUSD E3', 'LTCUSD E3']", how does the " E3" suffix get there and what does it correspond to? There is probably a foundational concept that I'm missing but right now I'm ultra confused trying to get a universe working on crypto.
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.
Derek Melchin
Hi HughStryker,
Since we have <100 crypto currencies available for trading, it may not make a lot of sense to use universe selection. However, we can access Tradebar and Quotebar information inside the Selector method by first converting the list of tickers into Symbol objects.
def Selector(self, utcTime): selected_tickers = [] symbols = [Symbol.Create(ticker, SecurityType.Crypto, Market.GDAX) for ticker in self.allTickers] for i, symbol in enumerate(symbols): if self.Securities.ContainsKey(symbol): # We can access Tradebar here and Quotebar info here self.Log(f"Last known close of {symbol} is {self.Securities[symbol].Close}") if True: # Place filtering criteria here selected_tickers.append(self.allTickers[i]) return selected_tickers
Note that on the first call of this method, self.Securities won't contain the Symbol keys. For most use cases, accessing Tradebars and Quotebars in OnData is recommended.
In regards to the characters at the end of the string representation of Symbols, refer to our security identifiers documentation.
See the attached backtest for an example of the code above.
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.
HughStryker
Thanks Derek, this is helpful!
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.
Louis Szeto
Hi All
Please be noted that Coarse Fundamental Universe Selection is now available for Cryptos. Refer to this thread for more information.
Best
Louis
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!