Sub topic 7
Exchange Inflows, Outflows, and Netflow
Assume you understand blockchain transactions, wallet addresses, and basic Python. This chapter also assumes that an analytics provider has labeled some addresses as belonging to exchanges. Those labels are estimates, not facts recorded by the blockchain.
What exchange-flow metrics measure
An exchange flow tracks value crossing the boundary between labeled exchange addresses and other addresses.
- Exchange inflow is value sent from non-exchange addresses to exchange addresses.
- Exchange outflow is value sent from exchange addresses to non-exchange addresses.
- Exchange netflow is inflow minus outflow.
A positive netflow means more value entered exchanges during the selected period. A negative netflow means more value left them.
These measures usually use the asset's native unit, such as BTC or ETH. If you compare different assets, convert values consistently or analyze each asset separately.
| Transfer direction | Classification | Effect on netflow |
|---|---|---|
| Non-exchange → exchange | Inflow | Add value |
| Exchange → non-exchange | Outflow | Subtract value |
| Exchange → exchange | Internal transfer | Usually ignore |
| Non-exchange → non-exchange | Not an exchange flow | No effect |
Why address labels matter
A blockchain identifies addresses, not organizations. An exchange can control thousands of deposit, withdrawal, hot, cold, and custody addresses. An analytics provider must cluster these addresses into one exchange entity.
This creates two important sources of error:
- False negatives: an exchange address is not labeled, so a real flow is missed.
- False positives: an address is labeled incorrectly, so unrelated value is counted as exchange activity.
Exchange-to-exchange transfers are especially important. They may represent custody reshuffling rather than customer deposits or withdrawals. Counting them would inflate both inflow and outflow without showing new economic activity.
Some protocols also create contract calls, wrapped assets, bridges, or token movements that need separate handling. A simple native-coin transfer table may not capture the full economic transfer.
Computing netflow
For each transfer, classify both endpoints. Add the value only when exactly one endpoint is an exchange address.
def exchange_netflow(transfers, exchange_addresses):
inflow = 0
outflow = 0
for transfer in transfers:
from_exchange = transfer["from"] in exchange_addresses
to_exchange = transfer["to"] in exchange_addresses
if to_exchange and not from_exchange:
inflow += transfer["value"]
elif from_exchange and not to_exchange:
outflow += transfer["value"]
return {
"inflow": inflow,
"outflow": outflow,
"netflow": inflow - outflow,
}
exchanges = {"0xb"}
transfers = [
{"from": "0xa", "to": "0xb", "value": 10},
{"from": "0xb", "to": "0xc", "value": 4},
{"from": "0xb", "to": "0xb2", "value": 3},
]
print(exchange_netflow(transfers, exchanges))The result is:
{'inflow': 10, 'outflow': 7, 'netflow': 3}The transfer from 0xb to 0xb2 counts as outflow because only 0xb is in the labeled exchange set. If both addresses belonged to the same exchange, that transfer would be ignored.
In production data, first normalize timestamps into a defined time zone, usually UTC. Then group transfers by day, hour, or another interval. State whether values are raw units, native units, or converted to a currency. Also document whether fees, contract transfers, and stablecoins are included.
Interpreting the signal
A positive exchange netflow can indicate deposits available for trading or selling. A negative netflow can indicate withdrawals to private custody. Neither interpretation is certain.
The same exchange address can serve many purposes. A deposit may be sold, transferred internally, used as collateral, or immediately withdrawn. A withdrawal may represent long-term holding, a payment, a bridge transfer, or movement to another service.
Compare flows with a baseline and with other metrics:
- Compare today with the asset's normal flow for the same time window.
- Separate large transfers from ordinary activity.
- Check whether the change comes from one address or many entities.
- Compare exchange netflow with price, trading volume, active addresses, and holder behavior.
- Use consistent exchange coverage when comparing different periods.
A large flow is not automatically bullish or bearish. Its meaning depends on who moved the asset, why the movement occurred, and what happened afterward.
Common mistakes
- Adding exchange-to-exchange transfers to both sides.
- Mixing hourly inflows with daily outflows.
- Comparing raw token amounts across assets with different decimal scales.
- Treating one exchange's coverage as the whole market.
- Counting internal wallet maintenance as customer activity.
- Inferring intent from a transfer without supporting evidence.
- Ignoring bridges, wrapped assets, smart contracts, or chain reorganizations.
- Using a cumulative total when a rate or normalized value is needed.
A useful normalized measure is netflow divided by circulating supply or by average daily transfer volume. This makes comparisons across assets or periods easier, but the denominator must be defined consistently.
Exercise
An exchange cluster receives 12 BTC, sends 5 BTC to external addresses, and moves 20 BTC between two addresses inside the same cluster. What are inflow, outflow, and netflow if internal transfers are excluded?
Show answer
Inflow is 12 BTC, outflow is 5 BTC, and netflow is 7 BTC. The 20 BTC internal movement is excluded.