Skip to content

Markets

Spread, market depth and slippage

Read an order book and see why the last trade price can differ from your execution price.

Read both sides of the order book

The best bid is the highest visible buy price and the best ask is the lowest visible sell price. The spread is their difference. To compare instruments, divide that difference by the midpoint and multiply by 100 to get the percentage spread.

A single price level shows the quantity available at that price. Market depth shows how much is available at additional levels too. Visible orders can be cancelled, so any snapshot describes a specific moment.

Estimate the average execution price

A market order can consume more than one level when the best offer has insufficient quantity. Multiply each fill price by the quantity filled at that level, add the amounts and divide by total quantity. Slippage is the difference relative to a reference price. Record whether your reference was the best offer, the midpoint or an earlier price.

A buy-limit order sets the highest acceptable price. If insufficient quantity is available, part of the order can remain open. A limit order that matches immediately may incur a taker fee under the exchange's rules.

Compare like with like

Use the same order size and quote currency when comparing depth across exchanges, and record the time of each snapshot. Liquidity can shift after news or during less active periods. Add exchange fees separately to the execution price.

Buying four units

The best bid is 99.80 and the ask is 100.20. The spread is 0.40, or 0.40% of the midpoint. Buying two units at 100.20 and two more at 100.50 gives an average of 100.35 before fees. Slippage relative to the best ask is 0.15 per unit.

Try it yourself

Write down the best offers and the quantities at the next two levels. Calculate how doubling the test order size affects the average price.

Sources and documentation

Examples are for educational purposes. Trading crypto-assets involves the risk of losing funds.