Aperiodic/Markets from First Principles
Markets from First Principles/Part 2, Pushing and paying

Lesson 6 of 10

Every trade leaves a mark

After a big order, how much of the move stays?

DMBy Daniel and Mark
13 min

So far: An order bigger than the best level walks the book, taking each price in turn, and the further it walks the more it pays over the best quote: its slippage (lesson 5).

Walking the book costs the buyer, and it leaves the price higher for whoever comes next. How far a big order moves the price, and how much of the move comes back once the book refills, can be measured from trades alone.

The peak, and what stays

Send 60 units into lesson 5's thick book and the order walks eight levels. Afterwards the best ask is 100.07 and the best bid still 99.99, so the mid has jumped from 99.995 to 100.03. That jump is the peak of the order's impact.

Then the makers come back. New asks appear below 100.07, new bids above 99.99, and the spread narrows again. Where the mid settles depends on what the makers conclude from the order. Someone just bought 60 units in a hurry. Maybe they knew something. Makers can't tell, so they shade their prices up a little: in this toy, a quarter of a tick for every 10 units bought.

Send the order and watch. The book is on the left, asks above and bids below, with outlines where your order took. The chart follows the mid for 30 seconds.

Step 1 of 3

Set an order size and how fast makers refill, then send it. Watch how far the mid jumps, and how much of the jump is still there 30 seconds later.

60
4 s

Nothing sent yet. The best bid is 99.99 and the best ask 100.00. Send 60 units and watch the mid for 30 seconds.

With the figure's starting settings, 60 units lift the mid 3.5 basis points. Makers refill, and it slides back to 1.5 above where it started, and stays there. The 2 basis points that came back are the temporary impact: the cost of emptying the book, paid by the buyer and gone once the book refills. The 1.5 that stayed is the permanent impact, a change in what everyone thinks the price is.

Slow the makers down and something else shows. If they close half the gap every 20 seconds, the same order still shows 2.2 basis points after 30 seconds, of which only 1.5 will stay. Measured then, more of the move looks permanent than really is. How much of a move stays depends on when you look, and every measure of it has to pick a moment.

The maths

With the mid at m0 before the order and m1 at its peak, a permanent rise P, and makers closing half the gap every h seconds, the mid t seconds after the order has filled is:

mid(t) = m0 + P + (m1 − m0 − P) · 2^(−t / h)

In the toy, P is 0.025 ticks for every unit bought.

One slope for a market

You rarely see one big order on its own. You see thousands of trades of every size, buys and sells mixed, each moving the price a little. Albert Kyle's 1985 model of trading gives a way to read them together. In it, makers move the price by a fixed amount for every unit bought or sold in a hurry. Plot each trade's size against the move that came with it, and the slope of the line through the dots is that amount. It is called ƒKyle's lambda.

The figure plots 120 toy trades. Each dot is one: its size across, counted plus for a buy and minus for a sell, and the move that came with it up the side. Make the book thinner or thicker.

Step 2 of 3

Make the book thinner or thicker. Watch every trade's move grow or shrink, and the line's slope with them.

−3−2−10+1+2+3−20−10+10+20sellsbuys, unitsbps
10
Live: 10 units waiting at each level
Kyle's lambda
0.053 bps
A 10-unit buy moves it
0.53 bps
Amihud, per 10,000 coins
0.91 bps

With 10 units at each level, every unit traded comes with 0.053 bps of move. Thin the book and the line steepens; thicken it and the line flattens.

With 10 units at every level, the slope is 0.053 basis points per unit: a 10-unit buy comes with about half a basis point. Halve the depth to 5 and the slope doubles, to 0.106. Quadruple it to 40 and the slope falls to 0.013. A steep line means a thin market, where every unit traded pushes the price further.

Yakov Amihud proposed a coarser measure in 2002, for stocks, a day at a time: take how far the price moved over the period, whichever way, and divide by how much traded. ƒAmihud illiquidity needs nothing but prices and volume. On the toy it reads the same way as the slope: 0.91 basis points for every 10,000 coins traded with 10 units at each level, twice that with 5. Its blind spot is a period where buyers and sellers cancel out. The price barely moves over it, so it looks liquid however thin the book is.

The maths

For trades with prices p and sizes q, counted plus for a taker buy and minus for a taker sell, each trade's return is r = p / p_before − 1, and:

Kyle's lambda = covariance(r, q) / variance(q)

Amihud = |p_last / p_first − 1| / (sum of every trade's p · |q|)

Five trades later

Lambda and Amihud say how hard trades push. Neither says how much of the push comes back. For that, watch the price after the biggest trades. The ƒlarge-trade reversal takes the biggest tenth of trades by value, looks five trades ahead of each, and averages the return from the big trade's price to the later one.

Here is a toy tape of 50 trades on lesson 5's book. Five are big buys of 60 units, ringed. Choose how many trades ahead to look.

Step 3 of 3

Change how many trades ahead to look. Watch where the price was by then, after each big buy.

99.98100.00100.02100.04100.06100.08100.10trade 11121314150−1.1−2.8−1.4−1.7−1.3
5
Live: Five trades ahead, as the measure looks
Average return after
−1.67 bps
Big buys over the mid
+3.80 bps
Came back
44%
Big trades
5

Five trades after the big buys, the price was on average 1.67 bps below where they printed. They printed 3.80 bps above the mid before them, so about 44% of that had come back.

One trade on, the price sits about 1 basis point below where the big buys printed. Five trades on, it is 1.67 below. The big buys printed 3.8 basis points above the mid before them, half the spread plus the walk, so by five trades on about 44% of that had come back.

A negative number after big buys, or a positive one after big sells, means part of the move came back. The measure doesn't flip sells around, so a minute with big trades on both sides can average out to nothing. Read it next to which side the big trades were on.

In real data

One minute of bitcoin, measured

FieldStoredIn plain units
Kyle Lambda1.90e-60.019 bps per bitcoin, about 21 cents
Amihud Illiquidity2.36e-110.24 bps per $1 million traded
Impact per Notional5.12e-110.51 bps per $1 million of net flow
Large Trade Reversal2.37e-7+0.0024 bps, a quarter of a tick

From 14:38 to 14:39 UTC on 11 June 2025, 11,692 trades took Binance's bitcoin perpetual from $110,169.3 to $109,927.0, down 22 basis points, on $93.1 million traded. Taker sells outweighed taker buys by $42.9 million.

The minute's Kyle Lambda says each bitcoin of a trade, plus for a buy and minus for a sell, came with a move of 0.019 basis points: about 21 cents at that price, or two ticks. Its Amihud Illiquidity reads better as 0.24 basis points of move for every million dollars traded. Divide the same move by the net flow instead of all of it and you get 0.51 per million: its Impact per Notional.

Its Large Trade Reversal is +0.0024 basis points. Five trades after the minute's biggest tenth of trades, 1,170 trades of $19,892 or more, the price was on average a quarter of a tick higher. But 836 of them were sells. Split by side, the price five trades on was about two ticks lower after a big buy and about one tick higher after a big sell. Within five trades, a big trade's push came back by a tick or two, whichever way it went.

Every interval's Kyle Lambda, Amihud Illiquidity, Impact per Notional and Large Trade Reversal are in ƒImpact Metrics.

Binance BTC-USDT perpetual, every trade from 14:38 to 14:39 UTC on 11 June 2025, from Aperiodic's raw trades, and the pipeline's impact fields for that minute. Prices in US dollars; one tick is 10 cents.

What you learned

Peak impact
How far the price moves while an order empties the book, before anyone refills it.
Temporary impact
The part of the move that comes back once makers refill: the cost of emptying the book.
Permanent impact
The part that stays, because makers now think the price is higher, or lower after a sale.
Kyle's lambda
The slope of each trade's price move against its size, counted plus for buys and minus for sells. Steeper means a thinner market.
Amihud illiquidity
How far the price moved over a period, whichever way, divided by how much traded in it.
Large-trade reversal
The average return five trades after the biggest tenth of trades. Read it next to the side those trades were on.

Check yourself

  1. 1. A buy lifts the mid 3.5 basis points. Once the book refills, the mid sits 1.5 above where it started, and stays there. How much of the impact was temporary?

  2. 2. Market A's Kyle's lambda is twice market B's. A 10-unit buy in A moves the price…

  3. 3. Five trades after the biggest buys, the price is on average below where they printed. What does that say?

Lesson 6 of 10.

Next

Lesson 7: A contract that never expires

How do you trade bitcoin without ever holding any, and what happens when everyone borrowed to do it?

Read lesson 7All lessons

Your progress stays in this browser. A free account keeps it on any device and lets you pull the data behind these lessons yourself: every metric for 2025 on BTC, ETH, SOL and 10 RWA perps, on an API key of your own. Get the data

Read every lesson on one page

13 min left
  1. Every trade leaves a mark
  2. The peak, and what stays
  3. One slope for a market
  4. Five trades later
  5. In real data
  6. What you learned
  7. Check yourself
Aperiodic

Built from hundreds of terabytes of raw data and distilled into point-in-time metrics you can pull as parquet files. Plus the raw trades, quotes and derivatives data behind them.

Use Cases
  • Improve your backtest
  • Find new alpha
  • Execute smarter
Indices
  • All indices
  • Aperiodic Cost Index
  • Aperiodic Depth Index
  • Aperiodic Impact Index
Metrics
  • Metrics library
  • Data Catalog
  • Free data
  • Live markets dashboard
  • Every perp, A–Z
  • Global Liquidity
  • Unusual activity
  • Order Flow
  • L1 & L2
  • Derivatives
  • RWA
  • Live funding rates
  • Raw Data
Developers
  • Docs
  • API Docs
  • MCP Server
  • Notebooks
  • Integrations
  • For AI Agents
  • Atlas Security Master
  • TParquet
  • Binance OI history API
  • OKX history APIs
  • Pre-flight
  • Changelog
  • Roadmap
  • llms.txt
Learn
  • Markets from First Principles
  • Replays
  • Microstructure Guide
  • Architecture
  • Research Blog
  • FAQ
Compare
  • All vendors
  • Pricing compared
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
  • vs. Crypto Lake
  • vs. Laevitas
  • vs. Coinalyze
  • vs. Binance public data
  • vs. Hyperliquid data
  • Binance archive
  • Hyperliquid data
Company
  • Team
  • Pricing
  • Contact
  • Book a call
  • Terms of Service
  • Privacy Policy
  • Licensing
  • SLA

© Copyright 2026 Aperiodic. All Rights Reserved.

Aperiodic Limited · Registered in Ireland · Company No. 815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland