Skip to content

Count ranked coins as listed so new coins are not removed the week after - #227

Merged
JerBouma merged 1 commit into
mainfrom
feature/crypto-liveness
Oct 11, 2026
Merged

JerBouma merged 1 commit into
mainfrom
feature/crypto-liveness

Conversation

@JerBouma

Copy link
Copy Markdown
Owner

Fixes a back-and-forth in the weekly crypto update.

What happened

The removal rule had two flaws:

  • It only checked CoinGecko's full coin list, which doesn't include these coins; they appear only in the market-cap ranking.
  • It stripped trailing digits to handle Yahoo-style numbered tickers (HNT1 → HNT), which turned SN64 into SN.

Fix
A coin counts as listed when either CoinGecko list has its ticker, as it is or without a trailing number. Against live CoinGecko data, the next run would add back those 8 coins plus one new one (POD) and remove none. A test covers a ranked-only coin with a ticker ending in digits.

Checks: the markets, listings and layout tests, and black.

Coins only in CoinGecko's market ranking (e.g. Bittensor subnet tokens such as SN64) were
added one week and removed the next, because removal only checked the full coin list
and stripped trailing digits (SN64 -> SN). A coin now counts as listed when either list
has its ticker, with or without a Yahoo-style number.
@JerBouma
JerBouma merged commit 454064c into main Oct 11, 2026
4 checks passed
@JerBouma
JerBouma deleted the feature/crypto-liveness branch October 11, 2026 15:26
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

Successfully merging this pull request may close these issues.

1 participant