Hi all, I'm trying to retrieve historical data for less common cryptocurrency assets using QuantConnect's QuantBook, but I'm struggling to get meaningful results. I'm looking for help understanding which markets and symbol formats support small-cap tokens.
For example, I'm trying to pull data for SHIBUSDT via Binance Spot (I also tried via Babybit and Coinbase).
Here's the code I used:
symbol = qb.AddCrypto("SHIBUSDT", Resolution.Hour, Market.Binance).Symbol
df = qb.History(TradeBar, symbol, 50, Resolution.Hour)
print(df.tail())
Output:
Empty DataFrame
Columns: []
Index: []
I also tried fetching QuoteBar and Tick data for the same symbol, but those were empty too.
Does anyone know a reliable way to access price data for these smaller tokens (like PEPE, SHIB, SATS, etc.)? Is there a preferred market or symbol format I should be using — or maybe a specific data source within QuantConnect that covers these?
Any tips or insights would be highly appreciated! Thanks in advance. 🙏
Mia Alissi
How to Use:
target_symbols,target_pair, andmarketsas needed for your use case!.add_crypto()or.history()is empty, it’s likely that token and market are not supported by QuantConnect’s licensed feed.Tip:
If your desired token isn’t discovered by
CryptoUniverse.available_crypto_symbols(qb, Market.BINANCE), it’s not available for backtest or research data in QuantConnect for that market. Try searching other supported markets, and consult the QuantConnect data library for new additions!Sources: Binance Crypto Price Data - QuantConnect.com, Binance US Crypto Price Data - QuantConnect.com, Coinbase Crypto Price Data - QuantConnect.com, Kraken Crypto Price Data - QuantConnect.com, Reimagining the 60-40 Portfolio in an Era of AI and Falling Rates
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.
Shilo Hadad
I got the following error: AttributeError: type object 'CryptoUniverse' has no attribute 'available_crypto_symbols'
It seems we don’t have access to this method. Is there another way to discover the available crypto symbols per market? How can we get this to work
Shilo Hadad
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!