Check for Data Consistency

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by tracing CoinGeckoUniverse and the universe_selection code shown in the issue, then compare the reported market-cap values with the debug output. Done means determining why the three selected coins differ from the reported expected BTC, ETH and LTH result and confirming the corrected selection behavior.

Written by the indexing model from the issue text.

Description

The following algorithm is logging TON, KAS and MNT as the coins with the biggest market cap whereas it should probably be BTC, ETH, LTH:

# region imports
from AlgorithmImports import *
# endregion

class CreativeTanKoala(QCAlgorithm):
    def initialize(self):
        self.set_start_date(2024,3,4)
        self.add_universe(CoinGeckoUniverse, self.universe_selection)

    def universe_selection(self, data: List[CoinGeckoUniverse]) -> List[Symbol]:
        selected = sorted(data, key=lambda x: x.market_cap, reverse=True)[:3]
        for datum in selected:
            self.debug(f'{self.time} :: {datum.coin},{datum.market_cap},{datum.price}')
        return Universe.UNCHANGED
Dominant language
C#
Stars
5
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.