🆕 Modular Crypto Exchanges: The New Blueprint for Building Customizable Trading Platforms
A practical playbook on modular crypto exchange architecture, microservices, API-first crypto exchange platform design & composable modules

Crypto exchanges rarely fail because of trading. They fail because of treasury mismanagement , hot wallets overflowing, cold wallets underfunded, sweeps happening too late (or too often), or fees burned in panic during network congestion. Most new operators learn this the hard way.
In the Playbook on modular exchange architecture, we introduced the idea that the wallet/treasury module must be isolated from trading, compliance, and frontend layers. Treasury is its own operational discipline, with its own logic, thresholds, and risks.
This Playbook builds on that principle: organize your wallet tiers, define clear limits, and automate the flows between them so the system stays predictable and safe.
Before diving into limits and fees, one concept needs to be unmistakably clear: what a sweep actually is.
A sweep is simply moving excess funds from a hot wallet into safer storage. Think of it like tidying a workspace:
In practice, sweeping isn’t only about moving funds into cold storage, that’s just one scenario. Sweeps are also used to organize funds inside hot-tier wallets themselves, especially when an exchange separates receiving and withdrawal operations.
In practice:
Why this matters:
Separating these two hot functions, and sweeping between them, removes these unknown‑unknowns for new operators.
Most operators outside treasury haven’t heard the term, but the logic is everyday simple: keep the working area lean, keep everything else safe.
Hot wallets are for speed. Cold wallets are for safety. Warm wallets are optional and only useful at scale. Sweeps are the mechanism that connects these decisions.
Set thresholds, fee caps, and minimum sweep sizes, and rely on automation, with human overrides only when truly necessary, such as during fee spikes, unexpected liquidity needs, or cold‑wallet scheduling windows.
This guide helps exchange operators:
These principles pair naturally with the earlier Playbook on mint/burn/transfer rules, which explains when supply truly changes. (See: Mint vs Burn vs Transfer , A Treasury Rule for Exchange Operators.)
Not every business defines wallet tiers the same way. This Playbook frames them in a simple, scalable model that fits most exchange operations.
Most exchanges run two types of hot wallets, both online, both fully programmatically accessible, but with different roles. This programmability is the defining property of hot wallets: they can be monitored, swept, refilled, and managed automatically by your exchange wallet.
1. Receiving Hot Wallet
2. Operational Hot Wallet (Withdrawal Hot Wallet)
If you ever deposited into a large major exchange, you may have noticed on the blockchain that your deposit may quickly move somewhere else. This type of activity is frequent on larger exchanges and is a type of operational wallet management that could be using the combination of hot wallets as mentioned above.
Think of them this type of activity as:
Hot wallets require automation by design. They are online, always accessible to the exchange software, and the system can execute programmatic actions, sweeps, refills, alerts, and throttling. This could also mean your hot wallet may require minimal or near zero direct human intervention when designed correctly.
Keeping these roles separate simplifies treasury logic and lets automation work cleanly.

Warm wallets are a scaling tool, not a beginner requirement.
They act as:
Why they matter later:
But adding them too early creates unnecessary fund fragmentation and complexity. It can even slow the user experience, for example withdrawals that take 1–2 days because liquidity is stuck in the wrong wallet tier. This length of time is uncommon and extremely undesirable in crypto‑based financial services.
For new or mid‑size exchanges, running a simple blockchain, receiving hot → operational hot → cold, is usually cleaner.
Warm wallets become useful only when volume grows enough that frequent touching of the cold becomes slow and costly.
Cold wallets sit at the opposite end of the spectrum, no automation, no programmatic access, no automatic sweeping.
Cold storage is offline and designed for:
Because cold wallets remain fully offline, they cannot be accessed programmatically the way hot or warm wallets can. Any movement of funds requires manual human action , loading the signing device, verifying addresses, approving transactions, and broadcasting them deliberately.
This is the defining difference between cold storage and all online tiers. It is also why sweeping into cold is never continuous or automated; it follows scheduled operational procedures.
Some businesses sweep aggressively into cold (e.g., custodians). Others keep more liquidity hot to ensure faster withdrawals (exchanges).
The right balance depends on:
The controls every operator should set:
Hot Limit, the maximum allowed hot balance.
Minimum Sweep Size, don’t sweep dust; wait until it accumulates. Sweeping tiny amounts ("dust") is wasteful because the network fee can be larger than the value moved. For example, sweeping various 0.00003 BTC amounts during high blockchain congestion on bitcoin might cost more in blockchain network fees than the swept amount itself. But letting dust pile up across hundreds of small deposits creates a different problem: when you finally sweep, the transaction grows large and expensive due to many inputs, a form of UTXO bloat (also called input fragmentation) that drives fees up even more. Strategic batching, waiting for dust to accumulate to a meaningful threshold, keeps fees predictable and prevents both extremes. Fee Caps, auto-sweeps only when fees are below a defined threshold.
Note: Imposing a rule on your users that they can only deposit certain amount, so as to avoid too many users depositing tiny amounts. For example, $5 or $10 minimal deposit value accepted only policy.
Having these rules avoid bloat, prevent panic sweeps when fees spike and keep exposure predictable.
Below is a hands-on demonstration of how sweeping might work with your crypto wallet software and it's hot‑limit rules, minimum sweep sizes, and fee conditions.
Treasury discipline isn’t glamorous, but it is the backbone of safe crypto exchange operations. By setting clear thresholds, enforcing fee-aware automation, and using warm/cold tiers intentionally, teams reduce risk and gain predictability.
Things to avoid:
A modular exchange design naturally supports this structure, with a treasury layer that operates independently from trading, frontend, or compliance systems.
More importantly, these rules scale today, with thousands of users, and if lucky, tomorrow with millions!
Next: If you want sweeping, minting, burning, and transfers to follow policy instead of guesswork, explore how HollaEx®.