Book a free call

What Crypto Exchanges Need Beyond Spot Trading

Spot trading is the simplest thing an exchange does. Derivatives, custody, liquidity, risk checks and fiat rails each need their own systems.

Hertiv engineering teamReviewed by a senior engineer
7 min read
What Crypto Exchanges Need Beyond Spot Trading
On this page

Short answer

A crypto exchange needs more than a spot market to run: a matching engine that handles derivatives and margin, custody that keeps funds safe, liquidity that keeps prices tight, a risk engine that watches every position, and fiat rails and compliance systems that connect it to the banking system. Spot trading is the starting point; the rest lets an exchange serve traders who want more than buying and selling coins.

What infrastructure does a crypto exchange need beyond spot trading?

A crypto exchange needs far more than a spot market to run. Spot trading is a simple order book where one asset is swapped for another. Everything beyond that, from derivatives and margin to custody, liquidity, risk checks and fiat rails, needs its own system, and all of them have to work together under load.

The table below shows the main systems an exchange adds after spot trading and what each one does.

System What it does What breaks without it
Derivatives engine Runs perpetuals, futures and options No margin products at all
Margin and risk engine Checks collateral and liquidates positions Losses spread to other traders
Custody and wallets Keeps customer funds in hot and cold storage Funds lost to a breach
Liquidity and market making Keeps the order book tight and deep Wide spreads and failed orders
Fiat rails Moves money in and out through banks Users cannot deposit or withdraw cash
Compliance and surveillance Checks identity and watches for abuse Regulatory action and frozen accounts

The pattern is the same in every row: each system protects the exchange from a different failure, and a missing one becomes the failure that matters. An exchange that adds derivatives without a risk engine is the most common way to learn this.

How do derivatives and margin work?

Derivatives and margin work by letting a trader hold a position larger than the funds they deposited, with the exchange holding the difference as collateral. A perpetual contract tracks the price of an asset without an expiry date, and a funding rate keeps its price close to the spot price. A margin account lets a trader borrow against collateral to trade a larger size.

The engine has to do three things at once: match orders fast, track every position against the market price, and liquidate a position before its losses exceed its collateral. Liquidation is the hard part, because it has to happen in a falling market when many positions fail at the same time. The engine needs a liquidation process that sells into the market without pushing the price down further and triggering more liquidations.

The risk is that a liquidation cascade wipes out the insurance fund. Exchanges keep a fund to cover losses that liquidation cannot, and they set position limits and margin requirements to keep that fund from being used. The fund is a last resort, not a business model.

For the decentralised side of the same market, see decentralised versus centralised exchanges, which covers how DEXs handle the same problems.

How do custody and wallets work?

Custody works by splitting customer funds between cold storage, which is offline and hard to reach, and hot wallets, which are online and ready to pay withdrawals. Most funds sit in cold storage, and only the amount needed for near-term withdrawals sits in a hot wallet. Moving funds between the two needs approval from more than one person, so no single employee can move money alone.

The split is a trade-off between safety and speed. Cold storage is safe because it cannot be reached over the network, but it is slow, because a person has to sign the transfer.

Hot wallets are fast but exposed, so the amount in them is kept small and watched constantly. The exchange also needs a way to prove it holds what it says it holds, which is where proof of reserves and independent audits come in.

Multi-party computation wallets are one way to hold the keys without a single point of failure. For that approach, see what an MPC wallet is.

Where does liquidity come from?

Liquidity comes from market makers, who place buy and sell orders on both sides of the book and earn the spread between them. Without market makers, an order book is thin, spreads are wide, and a single large order moves the price. With them, a trader can buy or sell at a price close to the market price without waiting.

An exchange attracts market makers with fee rebates, low latency and a reliable matching engine. The makers need to know their orders will be processed fast and that the engine will not go down during a volatile move, because their business depends on being able to cancel an order in milliseconds. The exchange also runs its own liquidity checks, watching the depth of the book and the spread on each pair.

The risk is that liquidity disappears when it is needed most. Market makers pull their orders during extreme volatility, which is exactly when traders need them. An exchange that depends on a single market maker will find its book empty at the worst moment, so it spreads the work across several makers and sets minimum depth requirements.

What does the risk engine do?

The risk engine watches every position, every order and every account in real time, and it acts before a loss becomes a problem for the exchange. It checks collateral against the market price, blocks orders that would breach a limit, and starts liquidation when a position falls below its maintenance margin.

The engine also watches for abuse: wash trading, spoofing, and accounts that try to manipulate a thin market. It flags the pattern, and a surveillance team decides whether to freeze the account or report it. The checks have to run fast, because a market can move a long way in the time it takes a slow system to notice.

Surveillance matters to regulators as well as to traders. An exchange that cannot show it watches for manipulation will struggle to keep a licence, and its users will not trust a market where the price can be pushed around. The risk engine is the system that turns a trading venue into a market people trust.

For the exchange model itself, see what centralised crypto exchanges are, which covers how they are organised.

What about fiat rails and compliance?

Fiat rails are the banking connections that let users deposit and withdraw ordinary money, and they are the hardest part of running an exchange to get right. A bank account for a crypto exchange needs a licence, a compliance programme and a banking partner willing to take the risk, and losing that partner can shut the exchange down overnight.

Compliance covers identity checks, sanctions screening, transaction monitoring and reporting. Every user must be identified, every large transaction must be checked, and suspicious activity must be reported to the authorities. The systems that do this have to work at the speed of trading, or deposits and withdrawals pile up in a queue.

The cost of compliance is high, and it grows with every new market the exchange enters. Each country has its own rules, its own licence and its own reporting format, so an exchange that operates in ten countries runs ten compliance programmes. That is why many exchanges start in one market and expand slowly.

For the build side, crypto exchange development covers the systems involved.

For the decentralised alternative, DEX development covers how a DEX works.

Example (hypothetical): splitting $50 million in customer funds

Example (hypothetical): an exchange holds $50,000,000 in customer funds. It keeps 90% in cold storage and 10% in hot wallets, so $50,000,000 x 0.9 = $45,000,000 sits offline and $50,000,000 x 0.1 = $5,000,000 sits online for withdrawals.

On a normal day the exchange pays out $2,000,000 in withdrawals, which the hot wallet covers easily. On a busy day it pays out $6,000,000, which is $1,000,000 more than the hot wallet holds, so the operations team moves $2,000,000 from cold storage, a process that needs two people to sign and takes an hour.

The lesson is to size the hot wallet for a busy day, not a normal one. A hot wallet that covers normal withdrawals but not a busy day will delay payouts exactly when users are most anxious, and a hot wallet that is too large puts more funds at risk than it needs to.

What are the common mistakes?

The most common mistakes exchanges make beyond spot trading are adding derivatives before the risk engine is ready, keeping too much in hot wallets, and depending on one market maker or one bank.

  • Derivatives before risk. A derivatives engine without a tested liquidation process will fail in the first volatile move, and the losses will fall on the insurance fund.
  • Too much in hot wallets. A large hot wallet is a large target. Keep it sized for a busy day, not for convenience.
  • One market maker. A single maker can pull its orders at any time. Spread liquidity across several makers and set minimum depth rules.
  • One banking partner. A bank can close an exchange account with little notice. Keep a second rail ready before the first one fails.
  • Surveillance as an afterthought. A market without surveillance invites manipulation, and regulators notice before traders do.
  • No insurance fund. Liquidation cannot cover every loss. An exchange without a fund will pass the loss to its users.

Key takeaways

  • Spot trading is the starting point, not the exchange
  • Derivatives need a liquidation process before launch
  • Cold storage holds most funds; hot wallets cover a busy day
  • Liquidity depends on several market makers, not one
  • Fiat rails and compliance decide whether an exchange survives

Frequently asked questions

What is a crypto exchange beyond spot trading?

Beyond spot trading, a crypto exchange runs derivatives and margin, custody for funds, liquidity from market makers, a risk engine that watches every position, and fiat rails and compliance systems that connect it to the banking system. Spot trading is the starting point; the rest is what lets an exchange serve traders who want more than buying and selling coins.

What is a perpetual contract?

A perpetual contract is a derivative that tracks the price of an asset without an expiry date. A funding rate paid between long and short traders keeps its price close to the spot price. It lets a trader hold a position larger than the collateral they posted, but it can be liquidated if the price moves against them.

How much of an exchange's funds should be in cold storage?

Most exchanges keep the large majority of customer funds in cold storage, which is offline and hard to reach, and only the amount needed for near-term withdrawals in hot wallets. The exact split depends on withdrawal volume, but the hot wallet should cover a busy day, not just a normal one.

Where does an exchange get liquidity?

Liquidity comes from market makers, who place buy and sell orders on both sides of the book and earn the spread between them. An exchange attracts them with fee rebates, low latency and a reliable matching engine, and it spreads the work across several makers so the book does not empty when one pulls out.

What does the risk engine do on a crypto exchange?

The risk engine watches every position, order and account in real time. It checks collateral against the market price, blocks orders that would breach a limit, starts liquidation when a position falls below its maintenance margin, and flags patterns such as wash trading and spoofing for a surveillance team.

Why do crypto exchanges need fiat rails?

Fiat rails are the banking connections that let users deposit and withdraw ordinary money. Without them, users cannot move money in or out of the exchange. Getting and keeping a banking partner needs a licence, a compliance programme and ongoing reporting, and losing that partner can shut the exchange down.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a crypto exchange that goes beyond spot trading? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Crypto Exchange service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call