← Crypto Infrastructure
06.5

Crypto Infrastructure

The quoted price is not a promise. Your order eats through the book.

You press buy at one price and the fill comes back worse. That gap is slippage — a hidden cost sitting next to the fees. It appears when there simply is not enough resting at the price you were shown.

Price steps one order walked3
Quoted — the best step1.03 $
What that order averaged1.06 $
02

The problem

Same order. Same quote. Two books.

Both books show the same best price — 1.03 $ — and both hold the same three price steps above it. The only difference is how much is resting at each one. Buy 1,000 units on each side and watch where the order ends up.

1,000 units, fired into both

ILLUSTRATIVE MODEL
Deep book 4,000 PER STEP
Thin book 250 · 250 · 500
Quoted on both books1.03 $
Your average — deep book—
Your average — thin book—
Extra paid on the thin book—

Nothing has traded yet. Both ladders are resting sell orders — the depth waiting at each price. The figures are a model of the mechanism, not a real market. Press Fire the order into both books.

03

The definition

Three things slippage is, and one thing it never is.

Tap each card for what is actually happening underneath.

04

Hands on

Set the most you are willing to slip.

On a venue that trades against a liquidity pool you set a slippage tolerance — the maximum deviation from the displayed price you will accept. Drag it and watch the consequence, measured against the thin-book fill you just ran.

MAX DEVIATION 1.0%
Your price ceilingquote 1.03 $ plus the tolerance
1.040 $
The thin-book fillthe average from the two books above
1.060 $
Deviation you are accepting0.010 $
That thin-book fill at 1.060 $rejected

Balanced

The tolerance is an upper bound, nothing more. Exceed it and the trade fails. Too tight and it fails constantly; too wide and you sign up for a noticeably worse fill. Notice what it does not do: it never removes the slippage. It only decides how much of it you are prepared to live with before the order is abandoned.

05

The bridge

Same cost, two different machines.

An order book and a liquidity pool produce slippage for different reasons.

On an order book you can see the steps your order will walk. In a pool there are no steps to look at — there is a ratio between two assets, and your own trade moves it. How that ratio works, and why the size of the pool decides everything, is the next lesson: liquidity pools.

06

Check yourself

Five questions.

Answers come straight from this lesson. Submitting completes it.