~$ crypto-under-the-hood

# How crypto payment infrastructure actually works

~/notes / swap

Crypto Swap or Exchange Order: Which Is Actually Cheaper

A swap quotes one price for the whole trade. An order book fills against depth. Which costs less depends on size, pair and how much of your attention it deserves.

Ivan Kruse · · 3 min

A crypto swap and an exchange order do the same thing by different mechanisms, and the cheaper mechanism changes depending on the size of the trade. Most people pick one and use it for everything, which means they overpay on half their trades. Read against a crypto swapping service with a published rate, the distinctions below stop being academic.

What a swap actually does

You specify an input asset and amount, you get a quoted output amount, you accept. One price for the whole thing, no order book visible, no partial fills.

Behind that quote the provider is either filling from its own inventory or routing to venues where it can source the asset. Its margin is the difference between what it sources at and what it quotes you. That margin is wider than an exchange fee because it also covers the risk of the price moving between quoting and filling.

The advantage is certainty. The quoted output is what arrives. No slippage, no partial fill, no watching the book.

What an order book does

You place an order against resting liquidity. A market order fills against whatever is there, working through price levels until it is complete. A limit order waits.

Your cost is the exchange’s fee, typically 0.1 to 0.5 percent depending on volume tier and whether you are taking or making, plus slippage if your order is large enough to walk the book.

The advantage is that on a liquid pair with a small order, this is simply cheaper. There is no inventory risk being priced in because you are transacting against other participants directly.

Where the crossover is

For a liquid major pair, an order book beats a swap on cost for almost any size, provided you are willing to use a limit order and wait. A market order on a large size can lose the advantage to slippage. The institutional version of the same problem runs through a corporate crypto wallet, with an extra reporting layer on top.

For an illiquid pair, a swap frequently wins, because the swap provider can route across several venues and aggregate liquidity you would have to access manually. Walking a thin book yourself is where the real cost is.

For a cross-chain move, a swap almost always wins, because doing it manually means a bridge, two sets of network fees, and an interval where you are exposed to both the price and the bridge.

The comparison that matters

Swap Order book
Cost on a liquid major pair, small size 0.3 to 1% 0.1 to 0.2%
Cost on a thin pair Often better, routing aggregates depth Slippage can be several percent
Cross-chain One transaction, one quote Bridge plus two trades
Certainty of output Exact, quoted up front Depends on fill
Attention required None Some

How to read a swap quote properly

Three things to check before accepting.

Is the network fee inside or outside the quote. A swap quoting an output amount that then has a network fee deducted is quoting a number you will not receive. Providers that separate the two are easier to compare.

What is the quote validity. Ten seconds is normal for volatile assets. A quote valid for two minutes on a volatile pair is either being hedged or is priced with a wide enough margin to absorb two minutes of movement. Usually the latter.

What is the implied rate against spot. Take the output, divide by the input, compare against the mid-market rate. That percentage is your all-in cost. It is the only number worth comparing between providers, and it takes ten seconds to calculate.

A provider running a crypto swap service that prices the network fee separately makes this calculation possible without guesswork, which is the main practical difference between swap products.

What I actually do

Liquid pair, size that will not move the book, no time pressure: limit order on an exchange. Everything else: swap, after checking the implied rate. The difference in cost on the first category is worth the extra minute. On the second it is not, and the swap removes an entire class of execution mistakes.

# Corrections and technical nitpicks are welcome. Send them over. They get published with the fix.

swapexchangefees

# related notes