↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Strategy Explorer Strategies Strategies
  • Research
  • Data
  • Algorithm Lab Lab Lab
  • Documentation Docs Docs
  • Sign In
Forum
    Platform
  • Pricing
  • Datasets
  • Research
  • Datasets
  • Algorithm Lab
  • Documentation

    SIGN IN

  • Sign in
  • Don't have an account? Join QuantConnect Today

  • Sign up for Free
 

back arrow

QUANTCONNECT COMMUNITY

 
Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

OPEN LEAGUE PRO LEAGUE
No Results
  • «
  • 1
  • »
LEAN Logo

Radically Open-Source Algorithmic Trading Engine

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 Our Discord Channel

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.

This research is under review. To publish this research attract three community upvotes.


Draft Discussions




Bookmarked Discussions


Loading...
  • «
  • »
 Share New Research

Refer to our Research Guidelines for high quality research posts.

 Start New Discussion Sign up

SEARCH DISCUSSIONS


TOP 5 Research Publications

-


397,700 Quants.
Become a Quant

Online Now

Code of Conduct

VOTE FOR UPCOMING FEATURES

Share your input and vote on our future direction.

LEAN Roadmap

Create an account on QuantConnect for the latest delivered to your inbox.

Sign Up Today
profile

Answers

Answers

  Backtests

Backtests

  Comments

Comments

  Live Traded

Live Traded

 

 

 

Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

This research is under review. To publish this research attract three community upvotes.
This discussion is a draft. Click here to publish this discusison.

Code from documentation return an error - AGAIN


This problem happens again

CoinGeckUniverse returns one symbol by Mislav Sagovac - QuantConnect.com

 

 

Update Backtest





person upvoted this people upvoted this

Mislav Sagovac

 |  | accepted answerAccepted Answer
Permalink
Update Backtest





  • Notebook

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.

Twitter Facebook LinkedIn Copy Link

Mia Alissi


STAFF Pro ,

Here’s a diagnostic wrapper you can use around your universe selection function. Add this into your QuantConnect algorithm (replacing your universe/add_universe call and selection function), and run a backtest. This will clearly log the input from CoinGecko, all candidates, and forcibly select up to 5 coins to ensure your logic isn't filtering too aggressively.

Copy and adapt this pattern to your project to debug what the CoinGeckoUniverse is returning:

from AlgorithmImports import *

class DebugCoinGeckoUniverseAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self.set_start_date(2021, 1, 1)
        self.set_end_date(2022, 1, 1)
        self.set_cash(100000)

        # We'll add a CoinGeckoUniverse by passing the data type, a friendly name, and our selection function.
        # The engine will call our function with a list of CoinGeckoUniverse objects each time new data arrives.
        self.add_universe(
            CoinGeckoUniverse,
            "CoinGeckoDebugUniverse",
            self.debug_coin_gecko_selection
        )

    def debug_coin_gecko_selection(self, data: List[CoinGeckoUniverse]) -> List[str]:
        # 1) Log the raw data count
        data_count = len(data)
        self.debug(f"[DebugCoinGeckoSelection] Raw data count: {data_count}")
        if data_count == 0:
            self.debug("[DebugCoinGeckoSelection] No CoinGecko data available.")
            return []

        # 2) Log the symbol values of each CoinGeckoUniverse entry
        coin_names = [cg.symbol.value for cg in data]
        self.debug(f"[DebugCoinGeckoSelection] Candidate coin Symbols (pre-filter): {coin_names}")

        # 3) Force selection of the first 5 items to ensure multiple are returned for debugging
        selected_coins = coin_names[:5]
        self.debug(f"[DebugCoinGeckoSelection] Selected coin Symbols (post-filter): {selected_coins}")

        # 4) Return the final list of symbols
        return selected_coins

This way, you’ll quickly spot if your issue is with the data source or with your actual filtering logic. If this still only logs one available symbol, the problem is likely with the upstream data offered by QuantConnect’s CoinGecko integration (or with universe config). If you see all candidates and only one is selected "post-filter," revise the filtering further. Let me know what logs you get!

Sources: Kraken Crypto Price Data - QuantConnect.com, Binance US Crypto Price Data - QuantConnect.com, Coinbase Crypto Price Data - QuantConnect.com, Dropbox Base Data Universe Selection Algorithm, Bitfinex Crypto Price Data - QuantConnect.com

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.


Jared Broad


STAFF Pro ,

Sorry Mislav, we'll get it addressed by tomorrow. In future so we don't miss messages like this please send in a support ticket or create a data issue and email it to support. 

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.


Mislav Sagovac INVESTOR

 | 
Permalink
Update Backtest







  • Notebook

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.

Reply
person upvoted this people upvoted this
|
person upvoted this people upvoted this
Profile Image
Loading...
  • 1
Load More

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!


Allocate to this Strategy

Institutional clients can contact the author and allocate capital to this strategy.

Learn More
Organization

Organization Website

Team

Show More
Clone Strategy

Copy this strategy code to your QuantConnect account and deploy it live with your brokerage.

Clone
Previous Ranking

Browse strategies and organization entries from previous quarter's competitions.


Author:


IN THIS RESEARCH

PARTICIPANTS

Discussion Awards

SHARE RESEARCH
SHARE DISCUSSION
SHARE ARTICLE
SHARE


Actions
View in Strategy Explorer Award Discussion
Print Research
Comments
award-icon

What is an Award?

Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

 
 

Join QuantConnect for Free

QuantConnect Logo

QuantConnect™ 2025. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Research
  • Build vs. Buy
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Settings
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 4,000
  • Star 12,000
QuantConnect Logo

QuantConnect™ 2025. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Research
  • Build vs. Buy
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Settings
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 4,000
  • Star 12,000