Sub topic 3
Measuring Concentration with Top-N Share
This chapter assumes you can read Python lists and dictionaries, you know what a wallet address and a transaction are, and you have seen how exchange netflow is computed. Concentration tells you how much of a token's supply sits with a small group of holders. A high share in a few addresses can signal that a sale by those holders would move the market.
Top-N share
The top-N share is the fraction of total supply held by the N largest balances. Before you compute it, remove exchange, custodian, and contract addresses. Those balances belong to many users, so counting them as single holders overstates concentration.
def top_n_share(balances, n):
"""Fraction of total supply held by the n largest balances."""
total = sum(balances)
if total == 0:
return 0.0
top = sorted(balances, reverse=True)[:n]
return sum(top) / total
balances = [5000, 1200, 800, 300, 100, 50, 25, 10, 5, 1]
print(round(top_n_share(balances, 3), 4)) # 0.9345The top three balances hold 7000 of 7491 units, or about 93.45 percent.
Building threshold-based whale alerts
A whale alert flags any transfer at or above a fixed size. Pick the threshold from the token's typical volume, and check whether the alert fires too often.
def whale_alerts(transfers, threshold):
return [t for t in transfers if t["amount"] >= threshold]
transfers = [
{"day": "2026-11-26", "from": "addr_a", "to": "addr_b", "amount": 15000},
{"day": "2026-11-26", "from": "addr_c", "to": "addr_d", "amount": 40},
]
print(whale_alerts(transfers, 10000))flowchart LR
A[Labeled transfers] --> B[Remove internal moves]
B --> C{Amount at or above threshold?}
C -->|Yes| D[Raise alert]
C -->|No| E[Ignore]caption: Flow of a threshold-based whale alert from raw transfers to an alert. alt: A left-to-right flowchart. Labeled transfers pass through a step that removes internal moves, then a decision asks whether the amount meets the threshold. A yes answer raises an alert, and a no answer ignores the transfer.
Exchange reserves and proof of reserves
Proof of reserves is a method where an exchange shows that it controls the addresses holding customer funds. It usually signs a message with those keys. Control of an address does not prove that the exchange owes its users those funds, so proof of reserves says nothing about liabilities by itself.
Reading flow and whale signals with care
A large inflow to an exchange is often read as selling pressure, but it can also come from a custody move. Treat each signal as a question to check, not a conclusion.
Limitations, labeling errors, and privacy considerations
Address labels come from heuristics and public tips, so they can be wrong. Clustering can merge unrelated users, and CoinJoin-style transactions can break it. Labels also age, because exchanges rotate their addresses. Holder data reveals balances tied to real people, so use it only for analysis you are allowed to perform.
Exercise
Exercise
A token has balances [900, 600, 300, 100, 100]. What is the top-2 share, rounded to two decimals?
Show answer
Total is 2000. The top two are 900 and 600, which sum to 1500. 1500 / 2000 = 0.75, so the top-2 share is 0.75.