File size: 1,581 Bytes
5f20dc6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
"""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