Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Data Consistency #6

Open
AlexCatarino opened this issue May 8, 2024 · 0 comments
Open

Check for Data Consistency #6

AlexCatarino opened this issue May 8, 2024 · 0 comments

Comments

@AlexCatarino
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant