Skip to content
QuantMax
QuantMax
  • Overview
  • Curriculum
    • FLUMental maths and numerical fluency
    • COMBCounting and combinatorics
    • PROBProbability
    • GAMEGames, decision theory and puzzles
    • MMMarket making
    • MKTMarkets and products

Practise

  • Question bank
  • Mental arithmetic
  • Market simulator
  • Arbitrage trees
  • Horse racing
  • Bid book
  • Screening tests
  • Mock papers

Reference

  • Formula reference
  • Search

Your record

  • Review queue
  • Progress
  • Leaderboard
  • Profile
  • Invite friends
AccountSend feedback
  1. Formula reference

Market making

6 lessons · 9 equations. Each lesson below gives its formulas and key rules; open the lesson for the full explanation.

Market structure: the book, the order types and who pays whom

Queue-weighted microprice

Pmicro=PbQa+PaQbQa+QbP_{\mathrm{micro}}=\frac{P_bQ_a+P_aQ_b}{Q_a+Q_b}Pmicro​=Qa​+Qb​Pb​Qa​+Pa​Qb​​

Weights the bid by ask size and the ask by bid size; it leans toward the thinner side of the book.

Remember

  • Price–time priority makes queue position an asset worth protecting.

Theoretical value, width and skew

Turning uncertainty into a width

half-width≈z⋅σyour estimate\text{half-width} \approx z \cdot \sigma_{\text{your estimate}}half-width≈z⋅σyour estimate​

Treat your own estimate as a distribution. A market roughly one standard deviation either side of your theo is a sensible default; when asked explicitly for a confidence interval, use the z-score for the level requested.

Width grows with the square root of the pieces

σsum=σn  (independent pieces)\sigma_{\text{sum}} = \sigma\sqrt{n}\ \ (\text{independent pieces})σsum​=σn​  (independent pieces)

A market on a sum of nnn independent pieces is n\sqrt nn​ times as wide as a market on one piece, not nnn times: errors partly cancel. Ten dice need a market about 10≈3.2\sqrt{10} \approx 3.210​≈3.2 times as wide as one die, around a theo ten times as large.

Remember

  • Answer three questions in order: what is it worth, how sure am I, what am I holding.

Reading the fill: adverse selection

Kyle’s lambda

Δp=λ (x+u),λ=σv2σu\Delta p = \lambda\,(x + u), \qquad \lambda = \frac{\sigma_v}{2\sigma_u}Δp=λ(x+u),λ=2σu​σv​​

In Kyle’s model a market maker sets the price change proportional to net order flow. The slope rises with how much there is to know (σv\sigma_vσv​) and falls with how much noise trading hides it (σu\sigma_uσu​). A deep market is one with plenty of uninformed flow to camouflage the informed.

Remember

  • A fill is information: you are selected against by whoever most disagrees with your price.

Inventory: carrying risk, shedding it, and the reservation price

The Avellaneda–Stoikov spread

δa+δb=γσ2(T−t)+2γln⁡ ⁣(1+γk)\delta^a + \delta^b = \gamma\sigma^2(T - t) + \frac{2}{\gamma}\ln\!\left(1 + \frac{\gamma}{k}\right)δa+δb=γσ2(T−t)+γ2​ln(1+kγ​)

The total optimal spread has two parts: compensation for carrying inventory risk until the end of the horizon, and a term set by how quickly the chance of a fill falls as you quote further away (kkk). The quotes are centred on the reservation price, not the mid.

Remember

  • Your position, updated after every single trade.

The trading game: quoting, requoting, and the questions at the end

Key rules

  • On a known distribution, width comes from the standard deviation and a wide market is indefensible.
  • On an unknown quantity, decompose out loud first and quote around the estimate.
  • Separate the two reasons to requote: inventory always, theo only against informed flow.

Bet sizing, Kelly and risk of ruin

The Kelly criterion

f∗=bp−qb=edgeoddsf^{*} = \frac{bp - q}{b} = \frac{\text{edge}}{\text{odds}}f∗=bbp−q​=oddsedge​

The fraction of your bankroll that maximises the long-run growth rate of a repeated bet.

Kelly for any payoff

f∗=arg⁡max⁡f E[ln⁡(1+fX)]f^* = \arg\max_f\ \mathbb{E}\big[\ln(1 + fX)\big]f∗=argfmax​ E[ln(1+fX)]

For a bet whose return per unit staked is the random variable XXX, Kelly maximises expected log wealth. With a win of bbb or a total loss, it reduces to the familiar edge-over-odds. For small, frequent bets it approximates μ/σ2\mu/\sigma^2μ/σ2.

Risk of ruin with fixed bets

Pr⁡(ruin)=(qp)B\Pr(\text{ruin}) = \left(\frac{q}{p}\right)^{B}Pr(ruin)=(pq​)B

Betting one unit at a time with win probability p>12p > \tfrac{1}{2}p>21​ at even money, against an opponent with unlimited capital, a bankroll of BBB units is eventually lost with this probability. Edge shrinks the base; bankroll shrinks it exponentially.

Drawdowns under Kelly

Pr⁡(wealth ever falls to x W0)=x2/c−1\Pr(\text{wealth ever falls to } x\,W_0) = x^{2/c - 1}Pr(wealth ever falls to xW0​)=x2/c−1

For a continuously rebalanced bet at a fraction ccc of the Kelly stake, the probability of ever falling to a fraction xxx of starting wealth. At full Kelly (c=1c = 1c=1) the chance of ever halving is one half; at half Kelly it is one eighth.

Remember

  • Kelly stakes the edge divided by the odds; with even money that is just the edge.

QuantMax · 141 lessons · 1342 questions · c5c0caa

  • Premium
  • Arbitrage trees
  • Horse racing
  • Invite friends
  • Account
  • About QuantMax

Firm names identify publicly reported question patterns and nothing more. QuantMax is not affiliated with, endorsed by, or recruiting for any firm named in the curriculum. Everything you do in lessons and the question bank is kept to your account.