Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Market Microstructure
Order Book
Market Making
LabMarket making desk
Avellaneda–Stoikov
Glosten–Milgrom
Kyle Model
Spread Estimation
Connected Guides
  • Informed trading and Kyle's lambda
  • Price impact and optimal execution

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Kyle Model

Trade as an insider who knows the true value: hide your orders in noise trading while the market maker moves the price by λ times the order flow.

Random seed: 1

Setup

Round
10
120
1000
2004000
Model (one constant λ)

pₙ = pₙ₋₁ + λ·(xₙ + uₙ), λ* = 10.6¢ per 100 shares

best order with m auctions left: x = (V − p) / (λ·(m + 1))

expected optimal profit at a 1σ gap: c_N = 0.455, +$10,607

V ~ N(100, 4²), noise orders ~ N(0, 1,000²). The maker picks one λ that breaks even against the best insider; Kyle's full 1985 model lets λ change by auction.

You are the insider
You know the value101.17Price now starts at 100.00
Auctions left
10
Gap closed
0%
Price impact so far
+0.00
Your profit
+$0
Optimal, same noise
+$0
Price (your orders)Price (optimal insider)

Drag a bar to set your order for each auction (buy above zero, sell below). Light bars: the optimal order given your plan so far. Press Run to reveal the noise.

Cumulative profit: you vs the optimal insider
YouOptimal insiderNoise traders

About this tool

In the Kyle model one insider knows the true value of an asset, noise traders submit random orders, and a market maker sees only the total order flow. The maker cannot tell the insider's orders from the noise, so it sets the price as a linear function of the flow: Δp = λ × order flow, where λ, Kyle's lambda, measures price impact. The insider wants to profit from the information but knows that trading aggressively moves the price against them. The optimal strategy trades gradually and hides in the noise, so that the information leaks into the price at a steady pace. This lab puts you in the insider's seat.

Frequently asked questions

What is Kyle's lambda?

It is the price impact per unit of order flow: if the net order flow is x, the price moves by λx. A large λ means a thin, illiquid market where every order moves the price a lot; a small λ means a deep market. In the model λ grows with the uncertainty about the value and falls with the amount of noise trading, because more noise gives the market maker less reason to read flow as information.

Why does the insider not trade everything at once?

Because a large order would be read as information and move the price to the true value immediately, leaving almost no profit. By spreading trades out, the insider keeps each round's order small relative to the noise, so the price adjusts only partly each time. In the continuous version the insider trades so that the price converges to the true value exactly at the end.

Who loses money to the insider?

The noise traders. The market maker sets prices so that it breaks even on average, so the insider's expected profit comes entirely from the noise traders, who buy and sell for reasons unrelated to the value. More noise trading means more camouflage and a larger profit for the insider, but also a smaller loss per noise trade.

What should I try in the lab?

Play a few rounds as the insider and compare your profit with the optimal strategy on the same seed. Then try trading all at once and see the price jump to the value. Finally estimate λ by drawing a line through the scatter of order flow against price change. A common misconception is that price impact is a cost of trading large orders only; here it is how information gets into prices.

Learn the theory

  • Informed trading and Kyle's lambda — An insider hiding among noise traders, a market maker who prices from total order flow, the price-impact coefficient λ, and why the insider trades gradually.
  • Price impact and optimal execution — Temporary and permanent impact, the square-root rule of thumb, splitting a large order over time, and the Almgren–Chriss trade-off between cost and risk.