"""Top 20 coins by market cap (non-stablecoin) for the home diagnostic. Coin IDs match the CoinGecko IDs used by modules/coin_registry.py.""" TOP20_COIN_IDS = [ "bitcoin", # BTC "ethereum", # ETH "binancecoin", # BNB "ripple", # XRP "solana", # SOL "tron", # TRX "zcash", # ZEC "hyperliquid", # HYPE "dogecoin", # DOGE "monero", # XMR "chainlink", # LINK "cardano", # ADA "stellar", # XLM "bitcoin-cash", # BCH "litecoin", # LTC "uniswap", # UNI "the-open-network", # TON "hedera-hashgraph", # HBAR "avalanche-2", # AVAX "shiba-inu", # SHIB ] def get_conservative_ids(): """Conservative scan universe: top 20 by market cap (non-stablecoin).""" return list(TOP20_COIN_IDS) def get_risk_ids(registry_ids=None, min_market_cap=10_000_000): """Risk scan universe: registry coins outside top 20, market cap > $10M.""" if registry_ids is None: from modules.coin_registry import get_all_coins coins = get_all_coins() else: from modules.coin_registry import get_all_coins coins = get_all_coins() top_set = set(TOP20_COIN_IDS) risk = [] for c in coins: cid = c.get("id") if not cid or cid in top_set: continue if (c.get("market_cap") or 0) < min_market_cap: continue risk.append(cid) return risk