Finance quantitative · Livre 19 · Carrières

Interviews II: Markets, Trading Games and the Final Round

Ce livre est disponible en anglais uniquement.

Interviews II: Markets, Trading Games and the Final Round · Carrières

5Markets and Microstructure

Reading an order book, what the spread pays for, and what your own trading does to the price: queues, adverse selection, impact, TWAP, VWAP and optimal liquidation, short selling, and the rules that shape all of it. Each stem gives its numbers. The rules quoted are US ones unless a stem says otherwise.

5.1 Reading the book

Question 5.1 ★ QT, Trader, QR, Dev • market maker, hedge fund • junior

An order book shows bids of 300 shares at 99.98 and 500 at 99.97, and offers of 100 shares at 100.02, 400 at 100.03 and 1,000 at 100.05. You send a market order to buy 300 shares. What is your average price, and what do you pay above the mid-price, per share? What does the book’s best offer and mid-price become?

Answer

Answer to Question 5.1.

Your average price is about 100.0267, or about 2.67 cents above the mid-price of 100.00. The best offer becomes 100.03, for 200 shares, and the mid-price becomes 100.005.

You take all 100 at 100.02 and 200 of the 400 at 100.03, so the total is 10,002+20,006=30,00810{,}002 + 20{,}006 = 30{,}008, or 100.0267 a share. The mid-price before was (99.98+100.02)/2(99.98 + 100.02)/2. Afterwards it is (99.98+100.03)/2(99.98 + 100.03)/2.

Classic wrong answer. Using the best offer for all 300 shares. Only the displayed 100 is available at 100.02.

Question 5.2 ★ QT, Trader, QR • market maker, hedge fund • junior

The best bid is 100.00 for 900 shares, and the best offer is 100.02 for 100 shares. What is the mid-price, and what is the size-weighted microprice, which weights each side’s price by the size on the other side? Which way would you expect the next move to be, and why?

Answer

Answer to Question 5.2.

The mid-price is 100.01. The microprice is 100.018. You would expect the next move to be up, because little size stands on the offer.

The microprice is (100.00×100+100.02×900)/1000(100.00 \times 100 + 100.02 \times 900)/1000. The price with the smaller queue is closer to being traded through, so the estimate of fair value leans towards it. Note the crossing of the weights: the large bid size pulls the estimate toward the ask.

Classic wrong answer. Weighting each price by its own size, which gives 100.002 and leans the wrong way.

Follow-up. Is a large bid always good news? No. Displayed size can be cancelled, and in a thin market it can be there to mislead. So treat it as a statistic to be tested and not as a fact.

Question 5.3 ★ QT, Dev, QD, Trader • market maker, hedge fund • junior

At one price, three resting sell orders arrive in this order: AA for 100 shares, BB for 200 and CC for 50. A buy order for 250 shares arrives. How is it shared under price-time priority? How is it shared under pure pro-rata, where each order fills in proportion to its size? Which rule rewards speed, and which rewards size?

Answer

Answer to Question 5.3.

Under price-time priority, AA gets 100, BB gets 150, and CC gets none. Under pro-rata, they get about 71.4, 142.9 and 35.7. Time priority rewards speed, and pro-rata rewards size.

The orders’ total is 350. Pro-rata shares are 250×100/350250 \times 100/350, 250×200/350250 \times 200/350 and 250×50/350250 \times 50/350. In practice they round to whole lots, with a rule for the remainder.

Under pro-rata, showing more than you want gets you more of a small trade, so people oversize their quotes. Under time priority, the value lies at the front of the queue, so firms race to get there.

Classic wrong answer. Thinking that priority rules only matter to brokers. They decide what a market maker’s edge is made of.

Question 5.4 ★ QT, Trader, QR • market maker, hedge fund, bank • junior

You buy at 100.03 when the mid-price is 100.00. Five minutes later the mid-price is 100.02. Define and compute the effective spread, the realised spread and the price impact, in cents. Which part did the market maker keep?

Answer

Answer to Question 5.4.

The effective spread is 6 cents, the realised spread is 2 cents, and the price impact is 4 cents. The market maker kept the realised spread.

Effective spread is twice the distance from the mid-price at the trade: 2×(100.03−100.00)2 \times (100.03 - 100.00). Realised spread is twice the distance from the later mid-price: 2×(100.03−100.02)2 \times (100.03 - 100.02). Price impact is twice how far the mid-price moved: 2×0.022 \times 0.02. The two parts add up: 2+4=62 + 4 = 6.

You paid 3 cents. The market maker sold at 100.03 what is worth 100.02 five minutes later. So 1 cent of its 3 remains, and the other 2 went to adverse selection.

Classic wrong answer. Treating the effective spread as profit for the market maker. Most of it can be lost to the price’s move.

Question 5.5 ★ QT, Trader • market maker, hedge fund • junior

A stock has a 1-cent spread. The venue charges a taker 0.3 cents per share and pays a maker 0.2 cents. If you want to buy, how much do you save per share by being filled passively at the bid instead of crossing at the offer? What does a market maker net per share, on a round trip with both sides filled passively, with no adverse selection?

Answer

Answer to Question 5.5.

You save 1.5 cents a share. A market maker nets 1.4 cents on a round trip.

Crossing costs you the 1-cent spread and the 0.3-cent fee, or 1.3 cents more than the bid. Filling passively at the bid earns you the 0.2-cent rebate. The difference is 1.5 cents. A market maker buying at the bid and selling at the offer earns 1 cent and two rebates: 1+2×0.2=1.41 + 2 \times 0.2 = 1.4.

This is a maker-taker venue. The fee is partly in the quoted price, so the spread you see is not what the two sides really pay. Net of fees, the exchange keeps 0.1 cents.

Classic wrong answer. Assuming you always get the saving. A passive order fills less often, and it fills when the price is about to go through you.

Question 5.6 ★ QT, Trader, QR • market maker, hedge fund • junior

With a minimum price step of 1 cent, one stock trades at $5 and another at $500. What is the smallest spread each can have, in basis points? Which is more likely to sit at a one-tick spread with a long queue, and why? What matters more for trading it, speed or price?

Answer

Answer to Question 5.6.

At $5, one cent is 20 basis points, and at $500, it is 0.2 basis points. The $5 stock is more likely to be stuck at one tick with a long queue. There, position in the queue matters more than price, since no one can improve the price.

If the natural spread is below the tick, say 5 basis points, the $5 stock cannot quote that. So everyone joins one level, and the queue is long. The $500 stock’s spread can vary with little constraint, so its book is thin at each of many levels, and price competition works.

Classic wrong answer. Thinking low-priced stocks are cheap to trade. In percentage terms, a tick-constrained spread can be much larger than the fair spread.

Question 5.7 ★ QR, QT • market maker, hedge fund • junior

A stock’s successive price changes have an autocovariance of −0.0004-0.0004 dollars squared at one lag. Assume the efficient price is a random walk and that each trade is equally likely to be at the bid or the ask, independently. What spread does that imply? Why is the autocovariance negative at all?

Answer

Answer to Question 5.7.

The spread is 4 cents, from s=2−Cov=20.0004s = 2\sqrt{-\mathrm{Cov}} = 2\sqrt{0.0004}. The autocovariance is negative because a buy at the ask tends to be followed by a trade at the bid, which pulls the price back.

This is the Roll estimator. The price is pt=mt+s2qtp_t = m_t + \tfrac{s}{2}q_t, with qt=±1q_t = \pm1 independent. The change is Δmt+s2(qt−qt−1)\Delta m_t + \tfrac{s}{2}(q_t - q_{t-1}). Only the qt−1q_{t-1} term is shared by consecutive changes, so the covariance is −(s/2)2 Var(q)=−s2/4-(s/2)^2\,\mathrm{Var}(q) = -s^2/4.

With no bounce, s=0s = 0, and the covariance is zero, as for a random walk.

Classic wrong answer. Using it when the autocovariance is positive. The formula then has no real answer, and that tells you the assumptions fail: trades cluster, or the price trends.

Question 5.8 ★ QT, Trader, Analyst • hedge fund, bank • junior

A day’s trades in a stock are 100 shares at 10.00, 200 at 10.20 and 700 at 10.10. What is the volume-weighted average price? You bought 500 shares in the day at an average of 10.08. How did you do against it, in basis points? What does the simple average of the prices give?

Answer

Answer to Question 5.8.

The volume-weighted average price is 10.11. You beat it by 3 cents, about 30 basis points. The simple average of the three prices is 10.10.

The sum of price times volume is 1,000+2,040+7,070=10,1101{,}000 + 2{,}040 + 7{,}070 = 10{,}110, on 1,000 shares. Your 10.08 is 3 cents below it, and 0.03/10.11≈0.30%0.03/10.11 \approx 0.30\%.

So the benchmark is weighted by where the volume actually traded. The simple average gives the small print at 10.00 the same weight as the large one at 10.10.

Classic wrong answer. Thinking that beating the benchmark proves good execution. A buyer who started early may simply have traded before their own impact showed.

Question 5.9 ★ QT, Trader, Analyst • hedge fund, bank • junior

A stock has 30 million shares sold short, and 2 million shares trade each day. What are its days to cover? If shorts together can be only 20% of volume when they buy back, how long does it take? Why does this number matter when a stock jumps?

Answer

Answer to Question 5.9.

Days to cover is 15. At 20% of volume, it would take 75 days. A stock that jumps can force shorts to buy back at any price, and a long exit queue raises their urgency.

The ratio is 30/2=1530/2 = 15. Buying 20% of 2 million is 0.4 million a day, and 30/0.4=7530/0.4 = 75.

The number is the size of a possible forced demand against normal liquidity. Shorts who are stopped out, or whose lender recalls the stock, must buy at any price, and that pushes the price up. It then stops out more of them. This is a short squeeze.

Classic wrong answer. Saying that a large short interest means the stock must rise. Shorts may be right. It tells you the possible size of the move if they are wrong.

Question 5.10 ★ QT, Trader • market maker, hedge fund, bank • junior

One American depositary receipt, a US-traded claim, stands for 2 ordinary shares in London. The shares trade at £10.00, and one pound buys $1.25. What is the receipt’s fair value? It trades at $25.20, and all costs of the trade total 30 basis points. What do you do, and how much do you make?

Answer

Answer to Question 5.10.

Fair value is $25.00. The receipt is 80 basis points rich, so sell it, buy the shares and hedge the currency, for about 50 basis points, or about 12.5 cents a receipt.

Two shares cost £20\pounds 20, and at 1.25 that is $25. Then 0.20/25=0.80%0.20/25 = 0.80\%, and 80−30=5080 - 30 = 50 basis points. The conversion between receipt and shares is what ties the two prices, and it costs a fee.

Classic wrong answer. Forgetting the currency. If you buy the shares in pounds and sell the receipt in dollars, a position remains until you close it or hedge it.

Question 5.11 ★ QT, Dev, QD, Trader • market maker, hedge fund • junior

Three US venues show offers of 100 shares at 100.01 on AA, 500 at 100.02 on BB and 400 at 100.03 on CC. You want 300 shares and you like venue BB. Can you simply send a buy to BB at 100.02? What is a trade-through, and what is an intermarket sweep order?

Answer

Answer to Question 5.11.

Not under order protection: you should first buy the 100 at 100.01 on AA, and then the 200 at 100.02 on BB. A trade-through is a trade at a price worse than a protected quote on another venue. An intermarket sweep order lets you send to BB at once, on your promise to send to AA at the same time.

Rule 611 of Regulation NMS makes venues enforce this. An intermarket sweep order is the routing tool: you mark the order to say that you have also taken the better prices, and the venue need not route it elsewhere.

As of November 2026 — Order protection under review

Rule 611 was adopted in 2005. On 11 June 2026 the SEC proposed to rescind it, together with Rule 610(e). Check where this stands before you state the rule as current.

Classic wrong answer. Thinking the best venue is simply where you get the best fill today. The routing obligation sets where you may trade first.

Question 5.12 ★ QT, Trader, Dev • market maker, hedge fund • junior

An opening auction has buy limit orders of 100 shares at 101, 200 at 100 and 300 at 99, and sell limit orders of 150 at 99, 150 at 100 and 200 at 101. What price maximises the traded volume, and how much trades? Who does not trade?

Answer

Answer to Question 5.12.

The price is 100, and 300 shares trade. At 100 all the buyers at 100 or better trade, as do all sellers at 100 or lower. The buyers at 99 and the sellers at 101 do not trade.

At each price, compare cumulative demand and supply:

PriceBuyers willingSellers willingVolume
99600150150
100300300300
101100500100

At 100 both sides are exactly 300. This is a call auction: everyone trades at one price.

Classic wrong answer. Matching orders one at a time from the top, as in a continuous market. The point of the auction is that everybody gets the one price.

Question 5.13 ★ QT, Trader • hedge fund, bank • junior

You must buy 200,000 shares at 10% of total volume, your own trades included. Other traders will trade 2 million shares today. How much can you do today, and what share of the others’ volume is that? What makes a percentage-of-volume order chase prices?

Answer

Answer to Question 5.13.

You can do about 222,222 shares, so the order finishes today. That is 11.1% of the others’ volume.

If you are 10% of the total, then x=0.1(2,000,000+x)x = 0.1(2{,}000{,}000 + x), so x=200,000/0.9x = 200{,}000/0.9. So the 200,000 can be finished when the others have traded 1.8 million.

A percentage-of-volume order trades more when volume is high, and volume is often high when the price is running. So it tends to buy after rises, and its own trades add to volume, which it then follows.

Classic wrong answer. Taking 10% of the others’ 2 million, 200,000. The rate has to include your own trades, or you run at the wrong rate.

Question 5.14 ★ QT, Trader, Analyst, Risk • hedge fund, bank • junior

You want to sell short 10,000 shares of a US stock today. What must your broker have done before accepting the order? What is a “fail to deliver”, and is a short sale without a borrow always illegal? Name one kind of participant that has an exception.

Answer

Answer to Question 5.14.

Your broker must have reasonable grounds to believe the shares can be borrowed for delivery; this is the locate requirement. A fail to deliver is when the seller does not deliver on settlement date. A short sale without a borrow is not necessarily illegal. Bona fide market makers have an exception from the locate.

Under Regulation SHO, Rule 203(b)(1) sets the locate, and Rule 204 sets when a fail must be closed out, by the start of trading on the day after settlement date for a short sale. A market maker must be able to sell before it has found a borrow, in order to quote. The exception does not cover speculative selling.

Classic wrong answer. Equating a fail with fraud. Fails occur for ordinary operational reasons. The rules work by forcing a close-out.

Question 5.15 ★ QT, QR, Trader • hedge fund, market maker • junior

Take this rule: the average cost of buying QQ shares, with daily volume VV and daily volatility σ\sigma, is about σQ/V\sigma\sqrt{Q/V}. A stock has a daily volatility of 2%. What does it cost to buy 1% of a day’s volume, and 4%, in basis points? If you quadruple your order, what happens to the cost in dollars?

Answer

Answer to Question 5.15.

1% of a day’s volume costs 20 basis points, and 4% costs 40 basis points. Quadrupling the order multiplies the cost in dollars by 8.

2%×0.01=0.2%2\% \times \sqrt{0.01} = 0.2\%, and 2%×0.04=0.4%2\% \times \sqrt{0.04} = 0.4\%. The cost per share doubles, and there are four times as many shares. So the total grows as Q3/2Q^{3/2}.

This is the square-root law in rough form: an empirical regularity of average impact, with a constant near 1 in many studies. It fits orders well below a whole day’s volume, and it is an average. Any given order can do much better or worse.

Classic wrong answer. Assuming linear impact, so that 4 times the size means 4 times the per-share cost. That overstates large orders, but the total cost is still more than proportional.

Why it matters. It sets the capacity of a strategy: the cost per dollar rises with the square root of size, so at some size it eats the edge.

5.2 Costs, queues and benchmarks

Question 5.16 ★★ QT, Trader, Analyst • hedge fund, bank • junior

You decide to buy 10,000 shares when the price is $50. You buy only 8,000, at an average of $50.10, and the commission is 1 cent a share. The price closes at $50.30, and you never buy the other 2,000. What is the implementation shortfall, in dollars, and as basis points of the paper portfolio? Split it into its parts.

Answer

Answer to Question 5.16.

The implementation shortfall is $1,480, or 29.6 basis points of the $500,000 paper portfolio. It is made up of $800 of execution cost, $80 of commission and $600 of opportunity cost.

Execution is 8,000×$0.108{,}000 \times \$0.10. Commission is 8,000×$0.018{,}000 \times \$0.01. The 2,000 shares you did not buy would have made $0.30\$0.30 each. A check by the paper-portfolio route: the paper return is 10,000×0.30=3,00010{,}000 \times 0.30 = 3{,}000. Your real return is 8,000×0.20−80=1,5208{,}000 \times 0.20 - 80 = 1{,}520. The difference is 1,480.

Classic wrong answer. Leaving out the shares you did not buy. A trader who buys nothing has no execution cost, but has missed the whole move.

Question 5.17 ★★ QT, QR, Dev • market maker, hedge fund • junior, experienced

Your order joins a queue with 20 single-lot orders ahead of it. Events that remove one order from the front of the queue, trades or cancels, arrive as a Poisson process at a rate of 1.5 a second. Treat the removals as coming only from the front. You are filled by the removal that takes your own order, the one after the 20 ahead have gone. How long, on average, until you are filled? What is the standard deviation? What is the chance you are filled within 20 seconds?

Answer

Answer to Question 5.17.

You are filled on the 21st event. On average that takes 14 seconds, with a standard deviation of about 3.06 seconds. The chance of being filled within 20 seconds is about 96%.

The wait is the sum of 21 exponential gaps, a gamma distribution, with mean 21/1.521/1.5 and standard deviation 21/1.5\sqrt{21}/1.5. Filled by 20 seconds means at least 21 events in 20 seconds, and that count is Poisson with mean 30.

Classic wrong answer. Using 20 events. You need the 20 ahead removed, and then one more to take you.

Follow-up. What does the model leave out? Cancels arise anywhere in the queue, and rates move with the market. Most important, your fill arrives when the queue collapses, often as the price goes through you.

Question 5.18 ★★ QT, QR • market maker, hedge fund • junior, experienced

A stock has a 1-cent spread, and you post at the bid. If you are first in the queue, small trades fill you, and the price then falls by one tick 20% of the time. If you are last in the queue, you fill only when something large comes in, and the price then falls by one tick 70% of the time. If it does not fall, it stays where it is. What do you expect to make per share against the mid-price just before your fill, in each case? How much is the queue position worth?

Answer

Answer to Question 5.18.

At the front you expect to make 0.3 cents a share, and at the back you lose 0.2 cents. So the queue position is worth 0.5 cents a share in this model.

You earn half a spread against the mid-price, 0.5 cents. The fall is one tick, 1 cent, so its expected cost is 0.2 cents at the front and 0.7 at the back. So 0.5−0.2=0.30.5 - 0.2 = 0.3 and 0.5−0.7=−0.20.5 - 0.7 = -0.2.

This is why a queue position has value, and why firms invest in speed to get to the front. The same quote at the same price is a good trade at one place in the line and a bad one at another.

Classic wrong answer. Treating all fills at a price as the same. The difference between them is who you trade with.

Question 5.19 ★★ QT, QR, Trader • market maker, hedge fund • junior, experienced

A stock is worth either 100 or 120, with a 30% chance of 120. A quarter of traders know the true value and trade on it. The rest buy or sell with equal probability. Each trades one share, and competition makes you break even on every quote. What are your bid and ask? Why are they not symmetric around the mean? If you see a buy and then a sell, what is your probability of 120?

Answer

Answer to Question 5.19.

The ask is about 108.33 and the bid about 104.09. They are not symmetric around the mean of 106, because the prior is not one half. After a buy and a sell, your probability of 120 is back at 30%.

A buy is more likely if the value is high: P(buy∣120)=0.25+0.375=0.625P(\text{buy} \mid 120) = 0.25 + 0.375 = 0.625, and P(buy∣100)=0.375P(\text{buy} \mid 100) = 0.375. So by Bayes, P(120∣buy)=0.1875/(0.1875+0.2625)≈0.4167P(120 \mid \text{buy}) = 0.1875/(0.1875 + 0.2625) \approx 0.4167, and the ask is 100+20×0.4167≈108.33100 + 20 \times 0.4167 \approx 108.33. Similarly, P(120∣sell)=0.1125/(0.1125+0.4375)≈0.2045P(120 \mid \text{sell}) = 0.1125/(0.1125 + 0.4375) \approx 0.2045, and the bid is about 104.09.

The ask is 2.33 above the mean and the bid 1.91 below it. A buy is less likely when the value is more likely to be low, so it carries more news. After a buy and a sell, the likelihood ratio is (0.625/0.375)(0.375/0.625)=1(0.625/0.375)(0.375/0.625) = 1.

Classic wrong answer. Quoting symmetrically around 106. Each quote must be the expected value given that it gets hit, and the two news amounts differ.

Follow-up. What if the informed share rises to 100%? Then a buy means 120 and a sell means 100. Your bid and ask are 100 and 120, and no ordinary trader can trade inside.

Question 5.20 ★★ QT, QR • market maker, hedge fund • junior, experienced

You make markets and your average buy fills at 10.00 when the mid-price is 10.01. You are paid a 0.2-cent rebate. On average the mid-price is 10.005 one second later and 9.995 one minute later. What are your profits per share marked at those two times? If you do 1 million shares a day, what do you make at each horizon? Which number do you believe, and what should you do?

Answer

Answer to Question 5.20.

The markout at one second is +0.7+0.7 cents a share, and at one minute it is −0.3-0.3 cents. On a million shares a day, that is $7,000 and −$3,000-\$3,000. The right horizon is the one at which you can actually flatten your position, and at a minute you are likely to be losing.

Your profit marked at a later mid-price mm is m−10.00m - 10.00 plus the rebate. At one second, 0.5+0.2=0.70.5 + 0.2 = 0.7 cents. At one minute, −0.5+0.2=−0.3-0.5 + 0.2 = -0.3.

The fall from 1 cent to 0.5 to −0.5-0.5 is adverse selection showing up. So you should check how long you really hold. Then widen on the flow that is costing you, or get out faster, or stop quoting at this point in the queue.

Classic wrong answer. Reporting the spread captured at the fill, 1.2 cents, as the desk’s profit. That is the number that looks best and means least.

Question 5.21 ★★ QT, Trader, Analyst • hedge fund • junior

You short 100 shares at $50 for three months. The lender charges a 6% annual fee on the value, and you earn 4% a year on the sale proceeds. The stock pays a $0.50 dividend during that time, and the price is unchanged. What is your cost? How far must the stock fall for you to break even? What is your largest possible loss?

Answer

Answer to Question 5.21.

It costs you $75: $25 of net financing and $50 of dividend. The stock must fall 75 cents to $49.25. Your loss has no upper limit.

Proceeds are $5,000. Over a quarter of a year, you earn 4%×5,000/4=504\% \times 5{,}000/4 = 50 and pay 6%×5,000/4=756\% \times 5{,}000/4 = 75, a net 25. You must pay the lender the dividend, 100×0.50=50100 \times 0.50 = 50. Each dollar the stock falls earns $100, so $75 is 75 cents a share.

As a check, with the fee equal to the interest and no dividend, the cost is zero.

Classic wrong answer. Forgetting the dividend, or thinking that a short sale earns nothing on its proceeds. The net rate is what matters, and in a hard-to-borrow stock it is strongly negative.

Question 5.22 ★★ QT, Trader, Dev • hedge fund, market maker • junior

A US stock closed at $50 yesterday. Today it trades down to $44.90 and is now quoted $44.88 bid and $44.90 offered. What does the short-sale price test under Rule 201 do? For how long does it hold? At what prices can you now sell short, and can you still hit the bid if you own the shares?

Answer

Answer to Question 5.22.

A fall of 10% or more from yesterday’s close, here to $45 or below, triggers the test. For the rest of today and all of tomorrow, you can sell short only above the national best bid, so at $44.89 or higher now. If you own the shares, you can still hit the bid.

Rule 201 of Regulation SHO is the alternative uptick rule. It does not stop short selling, but it stops short sales from pressing the bid: short orders must rest. So an execution system has to know its state on each stock, and whether each sale is marked long or short.

Classic wrong answer. Saying short selling is banned while the test holds. Only the price of the sale is limited.

Question 5.23 ★★ QT, Trader, Analyst • hedge fund, bank • junior

A trading day has four equal periods. Their shares of the day’s volume are 40%, 15%, 15% and 30%, and the average prices in them are 100.0, 100.5, 101.0 and 100.2. What is the day’s volume-weighted average price? You buy on a time-weighted schedule, with equal amounts in each period. What average price do you get, and how far are you from the benchmark in basis points? What would a schedule that follows volume have got?

Answer

Answer to Question 5.23.

The benchmark is 100.285. Your time-weighted average is 100.425, about 14 basis points above it. A schedule that follows volume would have got the benchmark exactly.

The volume-weighted average is 0.40×100+0.15×100.5+0.15×101+0.30×100.2=100.2850.40 \times 100 + 0.15 \times 100.5 + 0.15 \times 101 + 0.30 \times 100.2 = 100.285. The simple average is 100.425. Its gap of 14 cents is the result of underweighting the cheap first period.

As a limit case, if all four prices were equal, the two averages would be equal and the gap zero. The choice of schedule only matters to the extent that prices and volumes vary together.

Classic wrong answer. Thinking this says a volume schedule is cheaper. It says only that it tracks the benchmark. On another day, the first period is the dear one.

Question 5.24 ★★ QT, Trader, Analyst • hedge fund, bank • junior, experienced

Your order makes up 30% of a stock’s volume today. Others traded at an average of 100.00, and you bought at an average of 100.30, which is what your buying cost you. What is the day’s volume-weighted average price? What does your report say against it? What is the true cost, and what happens to the report if you are all of the volume?

Answer

Answer to Question 5.24.

The day’s average is 100.09. Your report says you paid 21 cents above it. The true cost is about 30 cents. If you were all of the volume, the benchmark would equal your price, and your report would say zero.

The average is 0.7×100+0.3×100.30=100.090.7 \times 100 + 0.3 \times 100.30 = 100.09. Your gap is 100.30−100.09=0.21100.30 - 100.09 = 0.21, which is your true 0.30 times (1−0.3)(1 - 0.3). So the benchmark contains you, and it flatters a large order.

Classic wrong answer. Using this benchmark for a large order. Compare with the arrival price too, since that does not move when you do.

Why it matters. An execution desk paid on this benchmark has an incentive to be a bigger part of the volume, which can be the opposite of what the client wants.

Question 5.25 ★★ QT, Trader • hedge fund, bank • junior, experienced

You must sell a large block. A dealer will buy it now at 0.8% below the mid-price. If you work it over two days yourself, the expected cost is 0.5%, with a standard deviation of 1.5%. Suppose you penalise a choice by λ\lambda times its variance, in units of return. At what λ\lambda are you indifferent? What else would you ask before deciding?

Answer

Answer to Question 5.25.

You are indifferent at λ≈13.3\lambda \approx 13.3. Above that, take the dealer’s price.

The dealer gives a certain 0.8%. Working it costs 0.5%+λ×(1.5%)20.5\% + \lambda \times (1.5\%)^2 with a penalty. So 0.003=λ×0.0002250.003 = \lambda \times 0.000225, which gives λ=13.33\lambda = 13.33. For a sense of scale, the 0.3% you save by working it comes with 1.5% of risk: 0.2 standard deviations of mean per unit of risk. Over a day or two, that is a strong Sharpe ratio to be getting paid for no view.

Ask also about what the dealer’s fill will reveal: is the market aware of the block? Do you hold other names like it? Does your 0.5% estimate allow for leakage? What is the position’s correlation with the rest of your book?

Classic wrong answer. Comparing only the expected costs. On those alone, working it always wins, and then no one would ever pay for a risk price.

Question 5.26 ★★ QT, QR, LLE, Dev • market maker, hedge fund • junior, experienced

A stale offer of 100 shares sits on an exchange, 2 cents below fair value. A market maker’s cancel takes a time uniform between 150 and 350 microseconds to arrive, and your order takes a time uniform between 200 and 400, independently. You pay a 0.3-cent taker fee if you trade, and you pay nothing if you miss. What is the chance you win, and what do you expect to make per share per attempt?

Answer

Answer to Question 5.26.

You win with probability 28.125%, and you expect to make about 0.48 cents a share per attempt.

Take the unit square, in units of 200 microseconds, with your time Y=200+200UY = 200 + 200U and the cancel’s X=150+200WX = 150 + 200W. You win if Y<XY < X, so if U<W−14U < W - \tfrac14. That is a triangle of side 34\tfrac34, and its area is 12×916=932=0.28125\tfrac12 \times \tfrac{9}{16} = \tfrac{9}{32} = 0.28125.

When you win, you make the 2 cents less the 0.3-cent fee, or 1.7 cents. So 0.28125×1.7≈0.4780.28125 \times 1.7 \approx 0.478.

A race like this has no clear winner, since the slower side wins more than a quarter of the time. Reducing the variance of your own latency matters as well as its mean.

Classic wrong answer. Saying the faster side always wins. Latencies have spread, and a slower median still wins sometimes.

Question 5.27 ★★ QT, Trader • hedge fund, bank • junior, experienced

You want to buy, and crossing the spread costs 1 cent from the mid-price. You can try a dark pool first, which trades at the mid-price. If it fills you, you save the 1 cent. If it does not, your attempt has leaked and the price rises 0.5 cents before you cross. At what fill probability does it pay to try first? What is the value at a 40% chance? What is missing from this calculation?

Answer

Answer to Question 5.27.

It pays above a fill chance of one third. At 40%, you gain 0.1 cents a share.

The gain is p×1−(1−p)×0.5p \times 1 - (1 - p) \times 0.5, which is zero at p=13p = \tfrac13. At p=0.4p = 0.4: 0.4−0.3=0.10.4 - 0.3 = 0.1.

What is missing is who you meet in the pool. Fills in a dark pool tend to come from those who are happy to sell to you just before a fall, so a mid-price fill is not always a saving. Also missing is the delay, and whether leakage depends on the pool.

Classic wrong answer. Treating mid-price as a free saving. A trade at mid in the pool can be worse than a trade at the offer, if the price then falls.

Question 5.28 ★★ QT, Analyst • market maker, bank • junior

A dealer fills retail orders in a stock with a 2-cent spread. It gives each order 0.2 cents of improvement on the quote, pays the broker 0.1 cents a share, and on average the price moves 0.2 cents against it afterwards. What does it make per share? Why can it pay for this flow and still beat the exchange’s price?

Answer

Answer to Question 5.28.

It makes 0.5 cents a share. It can pay for the flow because retail orders are, on average, uninformed about short-term moves, so the adverse selection is small.

Half the spread is 1 cent. It gives up 0.2 in improvement, pays 0.1, and loses 0.2 to adverse selection, so 1−0.2−0.1−0.2=0.51 - 0.2 - 0.1 - 0.2 = 0.5.

The exchange’s quote has to cover all flow, including the informed. A dealer that can choose which flow it trades with can offer a better price to it. This raises the question of who bears the adverse selection left on the exchange, and whether the broker should send the order to where the client’s price is best.

Classic wrong answer. Saying it “must be front-running”. The economics work on the flow’s low information content alone.

Question 5.29 ★★ QR, QT, DS • market maker, hedge fund • junior, experienced

A stock has a true daily volatility of 2% and a spread of 4 basis points. A day has 390 minutes, and the trade price bounces between bid and ask, independently from one sample to the next. What daily volatility do you estimate if you add up squared one-minute returns? And squared one-second returns? What would you do about it?

Answer

Answer to Question 5.29.

One-minute returns give about 2.08%, 4% too high. One-second returns give about 4.77%, more than twice the truth. You would sample at about five minutes, or use a noise-robust estimator such as two-scale realised volatility.

Each sampled return adds noise variance s2/2s^2/2, where ss is the spread in return terms: (0.0004)2/2=8×10−8(0.0004)^2/2 = 8 \times 10^{-8}. Summed over 390 minutes that is 0.0000312, on top of 0.022=0.00040.02^2 = 0.0004. So the variance is 0.000431, and its root is 2.08%. Over 23,400 seconds the noise is 0.00187, and the total is 0.00227, a root of 4.77%.

The true variance does not depend on the sampling rate, and the noise grows in direct proportion to it. So a signature plot of realised volatility against the sampling interval shows it.

Classic wrong answer. Assuming that more data is always better. More frequent sampling here gives a more precise estimate of the wrong number.

Question 5.30 ★★ QT, Trader, Risk • hedge fund, bank • junior

You buy $10 million of a stock with a 30% annual volatility. Its correlation with an index of 15% volatility is 0.75. How much of the index do you sell to hedge? What is the remaining annual volatility, in percent and in dollars, and what is that per day, with 16 as the square root of the trading days in a year?

Answer

Answer to Question 5.30.

Sell $15 million of the index. The remaining volatility is about 19.8%, or about $1.98 million a year, about $124,000 a day.

The beta is ρσs/σm=0.75×30/15=1.5\rho\sigma_s/\sigma_m = 0.75 \times 30/15 = 1.5. What is left is σs1−ρ2=30%×0.4375≈19.84%\sigma_s\sqrt{1 - \rho^2} = 30\% \times \sqrt{0.4375} \approx 19.84\%. Per day that is 1.98/161.98/16.

The hedge removes 56% of the variance, but only a third of the volatility. Note how much stock-specific risk you still run.

Classic wrong answer. Hedging dollar for dollar, with $10 million. That leaves a beta of 0.5 to the market and so leaves market risk on the table.

Question 5.31 ★★ QT, QR • market maker, hedge fund • junior, experienced

If you quote δ\delta cents from the mid-price, you are filled at a rate of e−kδe^{-k\delta} per second, with k=0.5k = 0.5 per cent. Ignore adverse selection and inventory. What δ\delta maximises your expected profit rate on one side? What is the fill rate and the profit rate there? How do they change if competition doubles kk?

Answer

Answer to Question 5.31.

The best δ\delta is 2 cents, with a fill rate of e−1≈0.37e^{-1} \approx 0.37 a second and a profit of about 0.74 cents a second. Doubling kk cuts δ\delta to 1 cent, and halves the profit rate, while the fill rate stays at 0.37.

Profit rate is δe−kδ\delta e^{-k\delta}, and its derivative is zero at δ=1/k\delta = 1/k. There, the profit rate is 1/(ke)1/(ke). So competition, as higher kk, narrows the quote and halves the profit, with fills unchanged.

Classic wrong answer. Quoting as tight as possible to get more fills. Each fill earns less, and the optimum balances the two.

Question 5.32 ★★ QT, Trader, QR • hedge fund, market maker • junior, experienced

You must buy now or within a minute. The spread is 2 cents, so crossing costs 1 cent from today’s mid-price. If you post at the bid instead, you are filled within the minute with probability pp. If you are not, the mid-price will on average have risen 0.8 cents, and you then cross. Measured against today’s mid-price, what do you expect to pay? For what pp does it pay to post? Should you also take something off for the mid-price falling when you are filled?

Answer

Answer to Question 5.32.

You expect to pay −p+(1−p)×1.8-p + (1 - p) \times 1.8 cents from today’s mid-price, which is 1.8−2.8p1.8 - 2.8p. Posting beats crossing if p>0.8/2.8≈28.6%p > 0.8/2.8 \approx 28.6\%. Do not take anything off for the mid-price falling on a fill: you bought at the bid regardless.

Filled, you pay 1 cent below today’s mid-price. Not filled, you pay 0.8+1=1.80.8 + 1 = 1.8 cents above it. Compare with crossing at +1+1. In general, p∗=d/(2+d)p^* = d/(2 + d), and at d=0d = 0 posting is always better.

You own the stock in every branch, so its later value does not differ between your choices. The adverse selection shows up in the size of dd: a fill happens more often when the price is falling, and a non-fill costs you more when it is rising. To subtract more would count it twice.

Classic wrong answer. Counting adverse selection separately on the filled branch. A market maker, who then has to sell, must do this. A buyer who wants to own the stock must not.

Question 5.33 ★★ QR, QT, DS • market maker, hedge fund • junior, experienced

You split a stock’s volume into buckets of 100 shares each and classify each bucket’s buy and sell volume. Four buckets have buys and sells of 60 and 40, 70 and 30, 50 and 50, and 90 and 10. What is VPIN, the average absolute order imbalance per bucket as a share of bucket size? What is it meant to show? What would you be careful about?

Answer

Answer to Question 5.33.

VPIN is 0.35. It is meant to measure the share of flow that is one-sided, as a proxy for toxic flow.

The imbalances are 20, 40, 0 and 80, with an average of 35 on a bucket of 100.

The cautions are these. Trade classification is noisy. Imbalance may reflect a large uninformed order, such as an index fund. High readings are also found alongside volatility, so check whether it predicts anything beyond volatility and volume before you size a decision on it.

Classic wrong answer. Reading a high value as proof of informed trading. It measures imbalance, and the rest is interpretation.

Question 5.34 ★★ QT, Trader, Dev • hedge fund, market maker • junior, experienced

A book has 100 shares at each level, 1, 2, 3 and so on cents above the mid-price. You need 1,000 shares. What does a single sweep cost above the mid-price, in dollars? Alternatively, you buy 100 shares a minute for 10 minutes at one cent above the mid-price, while each slice raises the mid-price 0.2 cents for good. What does that cost? If the stock moves 5 cents a minute in standard deviation, how much risk do the slices take?

Answer

Answer to Question 5.34.

A single sweep costs $55. The slices cost $19, and the risk is a standard deviation of about $84. So the slices save $36 in expected cost and take on about 2.3 times that in risk.

A sweep pays 1,2,…,101, 2, \ldots, 10 cents on each 100 shares: 100×55100 \times 55 cents. The slices pay 1+0.2(k−1)1 + 0.2(k - 1) cents on slice kk, for an average of 1.9 cents on 1,000 shares.

The risk comes from the shares you have yet to buy: 900 after the first minute, then 800, and so on down to 100. The squares add to 1002×285100^2 \times 285, so the root is 100×16.9100 \times 16.9, and at 5 cents a minute that is about $84.

Classic wrong answer. Ignoring the risk because it has zero mean. A mean-variance view weighs it, and if you have a short-term view, the cost is real.

5.3 Models under questioning

Question 5.35 ★★★ QR, QT • hedge fund, market maker • junior, experienced

You sell 1,000 shares in two slices, x1x_1 and then x2x_2. Each slice’s own temporary impact costs axi2a x_i^2. Your first slice lowers the price the second gets, which costs bx1x2b x_1 x_2. Holding x2x_2 across the period adds a risk penalty cx22c x_2^2. Take a=0.0002a = 0.0002, b=0.0001b = 0.0001 and c=0.0001c = 0.0001. What split is best, and what is the total cost? Compare it with an equal split and with doing all of it at once. What happens at c=0c = 0, and at c=0c = 0 and b=2ab = 2a?

Answer

Answer to Question 5.35.

Sell 625 first and 375 second, at a total cost of about $143.75. An equal split costs $150, and all at once costs $200. At c=0c = 0 the best split is equal. At c=0c = 0 and b=2ab = 2a, every split costs the same.

Let y=x2y = x_2 and x1=X−yx_1 = X - y. The cost is a(X−y)2+ay2+b(X−y)y+cy2a(X - y)^2 + ay^2 + b(X - y)y + cy^2. Its derivative in yy is −2a(X−y)+2ay+b(X−2y)+2cy-2a(X - y) + 2ay + b(X - 2y) + 2cy, which vanishes at

y=X(2a−b)4a−2b+2c=1000×0.00030.0008=375.y = \frac{X(2a - b)}{4a - 2b + 2c} = \frac{1000 \times 0.0003}{0.0008} = 375.

Then the cost is 0.0002(6252+3752)+0.0001×625×375+0.0001×3752=106.25+23.44+14.060.0002(625^2 + 375^2) + 0.0001 \times 625 \times 375 + 0.0001 \times 375^2 = 106.25 + 23.44 + 14.06.

With c=0c = 0, y=X/2y = X/2: splitting evenly spreads the convex impact, and risk pushes the split forward. With c=0c = 0 and b=2ab = 2a, the cost is a(x1+x2)2a(x_1 + x_2)^2 for every split, so the timing is worthless, and the price effect of the first slice cancels the gain from splitting.

Classic wrong answer. Thinking risk aversion makes you trade later. Holding is the risk, so it brings selling forward.

Question 5.36 ★★★ QR, QT, Trader • market maker, hedge fund • junior, experienced

The best offer has 3 lots, and the best bid has 7. Single-lot buy and sell market orders arrive with equal probability, and there are no new limit orders. The mid-price moves up half a tick if the offer goes first and down half a tick if the bid goes first. What is the chance it moves up? What is the expected move? Compare this with the microprice, and say why the two differ.

Answer

Answer to Question 5.36.

The chance the offer goes first is about 91%, so the expected move is about +0.41+0.41 of a tick. The microprice puts fair value 0.2 of a tick above the mid-price. The two differ because the microprice is a simple linear weighting, while the race is a tail probability.

The offer goes first if 3 buys arrive before 7 sells. Look at the first 9 orders, which must decide it: the offer goes first if at least 3 are buys. Then P=1−(1+9+36)/512=466/512≈91.0%P = 1 - (1 + 9 + 36)/512 = 466/512 \approx 91.0\%. The expected move is 12(0.910−0.090)=0.41\tfrac12(0.910 - 0.090) = 0.41 ticks.

The microprice weights are 7/107/10 and 3/103/10, so it lies 0.7−0.5=0.20.7 - 0.5 = 0.2 of a tick above the mid-price. As a check, with equal queues, both say 0.

The race overstates what you would see in practice, because queues are refilled. The truth is usually between the two. So fit the move as a function of imbalance from data, and you usually find that it curves.

Classic wrong answer. Giving the 70% from the sizes as the probability. That is the size share, and not the chance of winning a race to depletion.

Question 5.37 ★★★ QR, QT • market maker, hedge fund • junior, experienced

Trade signs, +1+1 for a buy and −1-1 for a sell, follow a Markov chain, so that the expected next sign is 0.8 times the current one. The price moves only on surprises, by 1 cent for each unit of surprise. How far does the price move on a buy that follows a buy? On a sell that follows a buy? What is the price’s total move after a run of five buys, starting from a neutral position? Order flow is strongly autocorrelated: why are price changes not?

Answer

Answer to Question 5.37.

A buy following a buy moves the price 0.2 cents, and a sell following a buy moves it −1.8-1.8 cents. After a run of five buys starting from neutral, the price has moved 1.8 cents. Order flow is predictable, and so the price already includes what is expected: only the surprise moves it.

The expected next sign after a buy is 0.8. A buy is a surprise of 0.2, and a sell a surprise of −1.8-1.8. Each such move has a mean of zero, since 0.9×0.2+0.1×(−1.8)=00.9 \times 0.2 + 0.1 \times (-1.8) = 0, with the buy probability (1+0.8)/2=0.9(1 + 0.8)/2 = 0.9. So price changes have no autocorrelation, though the signs do.

Over a run of five, the first is a surprise of 1 and the other four 0.2 each, so 1+0.81 + 0.8. The impact of a sequence of buys is concave in length, and that is the same concavity seen in large orders. This is a simple form of the Madhavan-Richardson-Roomans model.

Classic wrong answer. Saying that buy pressure must keep moving the price up because orders are autocorrelated. Prices that could be predicted so easily would be traded away.

Follow-up. And if you are the one splitting the order? The market is reading your run as a probable continuation, and so it prices you in. That makes your first slices dear and your later ones cheap.

Question 5.38 ★★★ QT, Trader • market maker, bank • junior, experienced

A client asks you to buy 1 million shares at once from them. Daily volume is 2 million, and daily volatility is 2%. You will sell them over time at 20% of volume. How long does it take? Take your average cost as two thirds of σQ/V\sigma\sqrt{Q/V}. What is it? What is the standard deviation of your outcome from holding a shrinking position? If you charge half of one standard deviation for risk, what discount do you quote? What does hedging with an index do, if the stock’s own volatility is 1.2% a day?

Answer

Answer to Question 5.38.

It takes 2.5 days. Your impact cost is about 0.94%. The standard deviation is about 1.83%. So you quote a discount of about 1.86%. Hedging with an index cuts the standard deviation to about 1.10%, and half of that brings the discount to about 1.49%.

The rate is 0.2×20.2 \times 2 million a day, so 1 million takes 2.5 days. Impact is 23×2%×0.5≈0.943%\tfrac23 \times 2\% \times \sqrt{0.5} \approx 0.943\%.

For the risk, you hold a share falling linearly from 1 to 0 over TT days. Your variance is σ2∫0T(1−t/T)2dt=σ2T/3\sigma^2\int_0^T (1 - t/T)^2 dt = \sigma^2T/3. So the standard deviation is 2%×2.5/3≈1.83%2\% \times \sqrt{2.5/3} \approx 1.83\%. With a hedge, 1.2%×2.5/3≈1.10%1.2\% \times \sqrt{2.5/3} \approx 1.10\%.

The total is 0.943+12×1.826≈1.86%0.943 + \tfrac12 \times 1.826 \approx 1.86\%. With the hedge it is 0.943+12×1.095≈1.49%0.943 + \tfrac12 \times 1.095 \approx 1.49\%. Then you add the risk that this client knows something: if the client is informed, you lose whatever the news is.

Classic wrong answer. Charging only the impact. The dealer has no view on the stock, and for the 2.5 days of risk, it must be paid.

Question 5.39 ★★★ QR, QT • market maker, hedge fund • experienced

You hold qq shares of a stock at mid-price ss, with exponential utility of risk aversion γ\gamma and a price variance of σ2\sigma^2 per unit of time. You will hold until a time τ\tau from now. Find the price at which you are indifferent to buying one more share, and the same for selling one. What is their average, the reservation price? With s=100s = 100, q=5q = 5, γ=0.1\gamma = 0.1, σ=2\sigma = 2, τ=0.5\tau = 0.5 and a total spread given by γσ2τ+(2/γ)ln⁡(1+γ/k)\gamma\sigma^2\tau + (2/\gamma)\ln(1 + \gamma/k) with k=1.5k = 1.5, what do you quote?

Answer

Answer to Question 5.39.

The bid-side indifference price is s−γσ2τ(q+12)s - \gamma\sigma^2\tau(q + \tfrac12), and the ask-side is s−γσ2τ(q−12)s - \gamma\sigma^2\tau(q - \tfrac12). Their average, the reservation price, is s−qγσ2τs - q\gamma\sigma^2\tau. So with these numbers it is 99, and you quote about 98.25 and 99.75.

With exponential utility and a normal price, the certainty equivalent of holding qq shares is qs−12γq2σ2τqs - \tfrac12\gamma q^2\sigma^2\tau. Buying one more at pp is worth it if (q+1)s−12γ(q+1)2σ2τ−p≥qs−12γq2σ2τ(q + 1)s - \tfrac12\gamma(q + 1)^2\sigma^2\tau - p \geq qs - \tfrac12\gamma q^2\sigma^2\tau. That gives p≤s−γσ2τ(q+12)p \leq s - \gamma\sigma^2\tau(q + \tfrac12). Selling one gives the other in the same way.

With the numbers, γσ2τ=0.1×4×0.5=0.2\gamma\sigma^2\tau = 0.1 \times 4 \times 0.5 = 0.2, and the reservation price is 100−5×0.2=99100 - 5 \times 0.2 = 99. The spread is 0.2+20ln⁡(1+0.1/1.5)≈1.490.2 + 20\ln(1 + 0.1/1.5) \approx 1.49, so half of it is 0.745. These are the Avellaneda-Stoikov quotes.

If q=0q = 0, the quotes centre on ss. If you are long, you lean them down to sell and to buy less.

Classic wrong answer. Skewing only one side. Both quotes shift by the same amount, and that keeps the same spread with a new centre.

Question 5.40 ★★★ QT, Trader, Dev, QD • market maker, hedge fund • junior, experienced

A colleague’s algorithm puts large bids a few levels below the market, to make others think there is demand, and sells at the offer once the price rises. It cancels the bids before they can fill. A second algorithm cancels 98% of its orders because its prices keep changing. Are these the same thing? What in US law makes the first one illegal? How would you detect it in your own firm’s orders?

Answer

Answer to Question 5.40.

No. The first is spoofing: bidding with the intent to cancel before execution. The second can be a lawful strategy whose orders do change. US law makes the first illegal through its intent. The Commodity Exchange Act, at 7 U.S.C. 6c(a)(5)(C), prohibits placing a bid or offer with the intent of cancelling it before it executes.

So a cancel rate cannot be what decides it. In the case against one trader, a US appeals court rejected the argument that the rule is vague because high-frequency traders cancel 98% of their orders. The issue is what the order was for. The first algorithm’s large bids are placed only to move others’ prices, so they are placed not to trade, while the second’s were placed to trade at the price then shown.

To detect it, look at orders where large resting size on one side coincides with fills on the other, and where the large orders are cancelled as soon as those fills occur. Compare the distance of the orders from the market, the order-to-trade ratio per pattern, and the share of orders on the far side that ever fill. Escalate to compliance when you find a pattern. Do not judge intent by yourself.

Classic wrong answer. “We cancel everything, so we are all spoofers” or “we did not intend harm, so it is fine”. The law looks for an intent to cancel at the time of the order, and it does not need a harm.

Follow-up. Is this only for futures? The cited provision is for markets under that Act, and securities and other markets have their own manipulation rules. Know which regime covers each book.

Question 5.41 ★★★ QR, QT, Analyst • market maker, hedge fund • experienced

A regulator proposes to halve the minimum price step for a $20 stock that always trades at a one-tick spread with a long queue. Who gains and who loses: long-term investors, market makers near the front of the queue, market makers near the back, and fast traders who jump ahead? What would you measure afterwards to judge it?

Answer

Answer to Question 5.41.

My recommended answer: long-term investors with small orders probably gain from a narrower spread, those with large orders may not, front-of-queue market makers lose, back-of-queue ones may gain, and fast traders who can step ahead gain. The net effect depends on how much the natural spread is below the tick.

The tick is a floor on the spread. If the natural spread is below 1 cent, halving the tick narrows it. A small order then pays less.

But a tick also protects a queue. Today, to get ahead of a long queue, you must improve by a whole cent, and that is expensive. With a half-cent tick, stepping ahead costs half as much. So the large displayed size that sits there today becomes less worthwhile, and depth falls at the best quote. A large order may now have to pay for more levels, so it may gain less, or lose.

Those at the front of the queue lose a position they paid for. Those at the back find the queue shorter. Fast traders can reprice for cheap, and they gain the most in stepping ahead.

To judge it, measure quoted and effective spreads, depth at and near the best quote, the cost of large orders through implementation shortfall, realised spreads and queue lengths, and the market maker’s adverse selection. Compare with similar stocks not changed, before and after.

Classic wrong answer. “A smaller tick means a smaller spread, so everybody gains.” Spread is one cost, and depth and queue value change too.

Question 5.42 ★★★ QR, QT, LLE • market maker, hedge fund • junior, experienced

You quote a half-spread of hh cents. Ordinary traders hit you at a rate of 1 a second. A public signal moves fair value by 2 cents at a rate of 0.5 a second. There are 3 equally fast firms, one quoting and two who race to pick off the quote; each of the three is equally likely to reach the exchange first. What hh makes the quoting firm break even? What does hh become with only one firm, and with very many? Would it help to have the race removed?

Answer

Answer to Question 5.42.

The break-even half-spread is 0.5 cents. With one firm, it is 0. With very many, it tends to about 0.67 cents. Removing the race would remove this component of the spread.

Ordinary trades pay hh at a rate of 1 a second. A signal comes at a rate of 0.5. With three firms, the quoter is first to cancel one time in three, and so it is sniped two times in three. Each time it loses 2−h2 - h. So

1×h=0.5×23×(2−h),1 \times h = 0.5 \times \tfrac23 \times (2 - h),

which gives h=23/43=0.5h = \tfrac23/\tfrac43 = 0.5. With NN firms, the factor is (N−1)/N(N - 1)/N: at N=1N = 1 the term vanishes, and as NN grows it tends to 1, so h→1/1.5h \to 1/1.5.

This is the result in Budish, Cramton and Shim’s work on the arms race: the race itself is the cost, and it is paid for in the spread by the ordinary traders. Frequent batch auctions were proposed to remove it. Being faster does not reduce it: if everyone is faster, the three-way tie remains.

Classic wrong answer. Saying that latency investment narrows spreads because prices update faster. Here hh does not depend on how fast the firms are, only on how many there are.

Question 5.43 ★★★ QT, QR • market maker • junior, experienced

A futures market fills by pure pro-rata. Others show 1,000 lots at your price. A trade is 200 lots with probability 90%, after which the price does not move, or 800 lots with probability 10%, after which it moves 1 tick against you. You earn half a tick against fair value on a fill. If you show qq lots, what do you expect to make per trade? What happens as qq grows? If you may never take more than 200 lots in one trade, what do you show?

Answer

Answer to Question 5.43.

You expect to make 50q/(1000+q)50q/(1000 + q) per trade. It rises with qq and flattens towards 50. If you may take at most 200 lots in one trade, show about 333 lots.

Your share of any trade is q/(1000+q)q/(1000 + q). On a small trade, you earn half a tick on 200 lots. On a large one, you earn half a tick and lose a tick on 800 lots. So the amount per unit share is 0.9×200×0.5+0.1×800×(0.5−1)=90−40=500.9 \times 200 \times 0.5 + 0.1 \times 800 \times (0.5 - 1) = 90 - 40 = 50.

So at q=100q = 100 you make about 4.5, at q=1,000q = 1{,}000 you make 25, and at q=3,000q = 3{,}000 you make 37.5. More size always helps, in expectation, so everyone oversizes. What stops you is the risk: your largest fill is 800q/(1000+q)800q/(1000 + q), and setting that equal to 200 gives q=1000/3q = 1000/3.

And others see the same thing, so their size grows too, and the 1,000 is not fixed. This is why pro-rata books show far more than people want.

Classic wrong answer. Showing what you want to trade. In pro-rata you are filled for only part of your display, so you show more, and you risk being filled for all of it.

Question 5.44 ★★★ QR, DS, QT • hedge fund, bank • junior, experienced

A fund splits its orders at random between two brokers, 400 to each. The average cost is 3.0 basis points with one and 4.2 with the other, and the standard deviation per order is 30 basis points for both. Is the difference significant? How many orders per broker do you need to detect a difference of 1.2 basis points with 80% power at the 5% level, two-sided? What does the cost’s size have to do with how you should run this?

Answer

Answer to Question 5.44.

It is not significant: the standard error of the difference is about 2.12 basis points, so t≈0.57t \approx 0.57. You would need about 9,800 orders per broker. The cost is so noisy relative to the gap that you cannot rank brokers on a few hundred orders.

The standard error is 30×2/40030 \times \sqrt{2/400}. For the required sample, n=2(1.96+0.84)2(30/1.2)2=2×7.84×625=9,800n = 2(1.96 + 0.84)^2(30/1.2)^2 = 2 \times 7.84 \times 625 = 9{,}800.

Two ways to do better. Use a control: comparing each order’s cost with a model of what it should cost, given size, volatility and spread, can take out much of the variance. And balance the orders by difficulty, so that luck in the mix does not decide it. The random assignment in the stem is the valuable part, because without it, one broker may get the hard orders.

Classic wrong answer. Choosing the cheaper broker on 400 orders, and then being surprised next quarter. Over a sample like this, the rank is close to a coin toss.

Question 5.45 ★★★ QR, QT • hedge fund, market maker • junior, experienced

You sell 50,000 shares in each of two periods. Each share sold lowers the price permanently by b=$0.000001b = \$0.000001, and trades happen at the price after that period’s selling. A predator who knows your plan sells yy shares in the first period alongside you and buys them back after your second period, when that buying raises the price back by byby. What yy maximises the predator’s profit, and what is the profit? What is your extra cost, and as a share of your cost with no predator? What does this say about how you should schedule?

Answer

Answer to Question 5.45.

The predator’s best yy is 25,000 shares, half a slice, for a profit of $625. Your extra cost is $2,500, which is a third of your cost of $7,500 with no predator. So a predictable schedule costs you much more than it makes for the predator, and you should randomise your timing and size and hide your total.

With no predator, you sell x=50,000x = 50{,}000 at p0−bxp_0 - bx, and then xx at p0−2bxp_0 - 2bx. So your cost is 3bx2=3×2,500=7,5003bx^2 = 3 \times 2{,}500 = 7{,}500, since bx2=2,500bx^2 = 2{,}500.

The predator sells yy at p0−b(x+y)p_0 - b(x + y), and buys back at p0−2bxp_0 - 2bx. The profit is y⋅b(x−y)y \cdot b(x - y), and it is largest at y=x/2y = x/2, where it is bx2/4=625bx^2/4 = 625.

You receive less by byby on each of your slices, since the predator’s yy stays in the price until the buy-back. That is 2bxy=bx2=2,5002bxy = bx^2 = 2{,}500. The rest of your loss goes to those who bought from you and from the predator at the lower prices.

Classic wrong answer. Thinking that a time-weighted order has no leakage because each slice is small. A predictable pattern is itself the leak.

Question 5.46 ★★★ QR, QT, Trader • hedge fund, bank • experienced

You must sell a quarter of a day’s volume, with a daily volatility of 2%. Suppose that over a horizon of TT days your expected cost is 23σQ/(VT)\tfrac23\sigma\sqrt{Q/(VT)} and that your risk is σT/3\sigma\sqrt{T/3}, and you minimise the cost plus one unit of the risk. What horizon is best? What are the two terms there? What does the empirical square-root law say that makes you wary of this cost model?

Answer

Answer to Question 5.46.

The best horizon is about 0.58 days. There, cost and risk are each about 0.88%, for a total of about 1.75%. The empirical square-root law says that cost depends on Q/VQ/V with little dependence on time, so this model’s gain from going slowly may be overstated.

Write the objective as aT−1/2+bT1/2aT^{-1/2} + bT^{1/2}, with a=23×2%×0.25≈0.667%a = \tfrac23 \times 2\% \times \sqrt{0.25} \approx 0.667\% and b=2%/3≈1.155%b = 2\%/\sqrt 3 \approx 1.155\%. The derivative gives T=a/b≈0.577T = a/b \approx 0.577. At that point the two terms are equal, each ab≈0.877%\sqrt{ab} \approx 0.877\%.

Where the law is true, cost barely falls with a longer horizon, as long as the orders stay in its range. Then going slowly is only risk, and the right answer is shorter. Check which applies in your own data: bucket the orders by duration, and see whether the cost at a given Q/VQ/V depends on it.

Classic wrong answer. Saying that slower is always cheaper. Slower adds price risk and leakage. And the data do not show large gains from stretching a fixed order.

Question 5.47 ★★★ QT, Trader, Risk • market maker, hedge fund • junior, experienced

A US stock’s reference price is $100, in the middle of the trading day, and its limit up-limit down band is 5%. At what prices do the bands sit? It trades down to the lower band, and offers stay there with bids below it. What happens after 15 seconds? How does the band change in the first and last parts of the day? You have sold a put on it and are delta-hedged: what is your problem during the pause, and what do you do?

Answer

Answer to Question 5.47.

The bands are at $95 and $105. If the market stays against the band for 15 seconds in a limit state, the listing exchange declares a pause of at least 5 minutes. The bands are doubled in the first 15 minutes of the day, and in the 25 minutes before the close. During the pause you cannot hedge your delta in this stock, and you are exposed. So you hedge with something related that still trades, or size down.

Under the limit up-limit down plan, the bands are set around the mean trade price of the past five minutes. A trade cannot print outside the band. In a limit state, the offer is at the lower band and there is no bid there, so sellers cannot find buyers at an allowed price, and the price cannot fall further for now. At the end of 15 seconds, it pauses. The reopening uses an auction.

You sold a put, and hedged by being short stock. As the stock falls, the put’s delta grows and you must short more. In the pause you cannot, and the reopening can gap well below the band, so you take a gamma loss you could not hedge against.

Use index futures or a sector fund as a partial hedge, and accept the basis. Check how your option venue treats the pause before you rely on it. A reasonable desk also limits short gamma in names most likely to halt, such as those with earnings.

Classic wrong answer. Thinking the bands protect you from a gap. They stop trading at a price. They do not stop the price from opening lower.

Question 5.48 ★★★★ QR • hedge fund, market maker • experienced

An asset’s value vv is normal around p0p_0 with variance σv2\sigma_v^2. A single insider sees vv and submits an order xx. Noise traders submit uu, normal with mean zero and variance σu2\sigma_u^2, independent of vv. A market maker sees only x+ux + u and sets the price at p0+λ(x+u)p_0 + \lambda(x + u), equal to the expected value given the flow. Find the insider’s strategy x=β(v−p0)x = \beta(v - p_0) and λ\lambda. With σv=2\sigma_v = 2 dollars and σu=1,000\sigma_u = 1{,}000 shares, what are β\beta, λ\lambda, the insider’s expected profit, and the price’s remaining variance? Who pays the insider?

Answer

Answer to Question 5.48.

The insider trades x=β(v−p0)x = \beta(v - p_0) with β=σu/σv\beta = \sigma_u/\sigma_v, and the price responds with λ=σv/(2σu)\lambda = \sigma_v/(2\sigma_u). With the numbers, β=500\beta = 500 shares per dollar, λ=0.001\lambda = 0.001 dollars per share, the insider’s expected profit is $1,000, and the remaining variance is 2. The noise traders pay.

Given vv, the insider chooses xx to maximise E[x(v−p0−λ(x+u))]=x(v−p0)−λx2E[x(v - p_0 - \lambda(x + u))] = x(v - p_0) - \lambda x^2. So x=(v−p0)/(2λ)x = (v - p_0)/(2\lambda) and β=1/(2λ)\beta = 1/(2\lambda).

The market maker prices at the regression of vv on the flow y=x+uy = x + u: λ=Cov(v,y)/Var(y)=βσv2/(β2σv2+σu2)\lambda = \mathrm{Cov}(v, y)/\mathrm{Var}(y) = \beta\sigma_v^2/(\beta^2\sigma_v^2 + \sigma_u^2). Substituting β=1/(2λ)\beta = 1/(2\lambda) gives β2σv2=σu2\beta^2\sigma_v^2 = \sigma_u^2. So the insider’s order has the same variance as the noise, and λ=σv/(2σu)\lambda = \sigma_v/(2\sigma_u).

The expected profit is E[(v−p0)2]/(4λ)=σvσu/2=2×1000/2=1,000E[(v - p_0)^2]/(4\lambda) = \sigma_v\sigma_u/2 = 2 \times 1000/2 = 1{,}000. The variance of vv given yy is σv2(1−12)=2\sigma_v^2(1 - \tfrac12) = 2: half the information enters the price.

In this Kyle model the market maker breaks even, on average. So the insider’s profit equals the noise traders’ loss. Doubling the noise halves λ\lambda and doubles the insider’s profit, while the price remains as informative.

Classic wrong answer. Thinking more noise makes the market less informative. The insider simply trades more, so that exactly half the variance always goes into the price.

Why it matters. This is where λ\lambda, the price change per share, comes from as a measure of liquidity, and why you read it as a statement about information.

Question 5.49 ★★★★ QR • hedge fund, bank, market maker • experienced

You must sell XX shares by time TT, holding x(t)x(t) shares at time tt. Selling at a rate vv costs you ηv\eta v per share. You minimise ∫0Tηv2 dt+λσ2∫0Tx2 dt\int_0^T \eta v^2\,dt + \lambda\sigma^2\int_0^T x^2\,dt. Derive the optimal path. Let κ2=λσ2/η\kappa^2 = \lambda\sigma^2/\eta. What share is sold by half way if κT=1\kappa T = 1, and if κT=3\kappa T = 3? In each case, how do the cost and the price variance compare with selling at a constant rate? What is the path when λ=0\lambda = 0?

Answer

Answer to Question 5.49.

The optimal path is x(t)=Xsinh⁡(κ(T−t))/sinh⁡(κT)x(t) = X\sinh(\kappa(T - t))/\sinh(\kappa T). By half way you have sold about 55.7% at κT=1\kappa T = 1, and about 78.7% at κT=3\kappa T = 3. Against selling at a constant rate, the cost rises about 1.9% and the variance falls about 11.7% at κT=1\kappa T = 1. At κT=3\kappa T = 3, the cost rises about 55%, and the variance falls about 51%. At λ=0\lambda = 0, the path is a straight line.

With v=−x˙v = -\dot x, the objective’s integrand is L=ηx˙2+λσ2x2L = \eta\dot x^2 + \lambda\sigma^2x^2. The Euler-Lagrange equation 2ηx¨=2λσ2x2\eta\ddot x = 2\lambda\sigma^2 x gives x¨=κ2x\ddot x = \kappa^2x. With x(0)=Xx(0) = X and x(T)=0x(T) = 0, you get the sinh⁡\sinh form above. As κ→0\kappa \to 0, it tends to X(1−t/T)X(1 - t/T).

The share sold by half way is 1−sinh⁡(κT/2)/sinh⁡(κT)1 - \sinh(\kappa T/2)/\sinh(\kappa T): 1−0.5211/1.17521 - 0.5211/1.1752 and 1−2.1293/10.0181 - 2.1293/10.018.

With T=1T = 1, integrating gives

∫01x˙2 dt=X2κ212+sinh⁡(2κ)/(4κ)sinh⁡2κ,∫01x2 dt=X2sinh⁡(2κ)/(4κ)−12sinh⁡2κ.\int_0^1\dot x^2\,dt = X^2\kappa^2\frac{\tfrac12 + \sinh(2\kappa)/(4\kappa)}{\sinh^2\kappa},\qquad \int_0^1 x^2\,dt = X^2\frac{\sinh(2\kappa)/(4\kappa) - \tfrac12}{\sinh^2\kappa}.

For constant selling, these are X2X^2 and X2/3X^2/3. So at κ=1\kappa = 1: 1.019 and 0.2945. At κ=3\kappa = 3: 1.552 and 0.1625.

This is the Almgren-Chriss model. The path is steep at the start because holding is the risk. The trade-off is shown best on the efficient frontier: a small move from linear gets a lot of risk reduction for little cost, and later moves are expensive.

Classic wrong answer. Selling evenly and calling that the optimum. It is optimal only with no risk aversion. Any λ>0\lambda > 0 brings selling forward.

Follow-up. What does κ\kappa tell you? Its inverse is the natural time of the order: about how long an order takes for a trader with this cost and risk. If TT is much above it, most of the order goes out early.

Question 5.50 ★★★★ QR • hedge fund, market maker • experienced

You sell XX shares in three trades at equally spaced times, of sizes x0x_0, x1x_1 and x2x_2. A trade of size xx moves the price by κx\kappa x, costing you 12κx2\tfrac12\kappa x^2 on itself. The earlier move then decays, and a fraction aa of it is still there at the next trade time. So the total cost is 12κ(x02+x12+x22)+κa(x0x1+x1x2)+κa2x0x2\tfrac12\kappa\left(x_0^2 + x_1^2 + x_2^2\right) + \kappa a\left(x_0x_1 + x_1x_2\right) + \kappa a^2 x_0x_2. Find the best sizes. With a=0.5a = 0.5, what are the shares, and what do you save against equal thirds, and against all at once? What happens as aa goes to 0 and to 1?

Answer

Answer to Question 5.50.

The sizes are in proportion to 11, 1−a1 - a and 11. With a=0.5a = 0.5, the shares are 40%, 20% and 40%, at a cost of 0.3κX20.3\kappa X^2. That is about 1.8% below equal thirds, at about 0.3056κX20.3056\kappa X^2, and 40% below all at once, at 0.5κX20.5\kappa X^2. As a→0a \to 0, the sizes tend to equal thirds. As a→1a \to 1, the middle trade vanishes, and you trade half at each end.

Write the cost as 12κ x⊤Gx\tfrac12\kappa\,x^\top Gx, with GG having 1 on the diagonal, aa next to it and a2a^2 at the corners. The optimum under ∑ixi=X\sum_i x_i = X has GxGx constant. Try w=(1,1−a,1)w = (1, 1 - a, 1). The first row gives 1+a(1−a)+a2=1+a1 + a(1 - a) + a^2 = 1 + a. The middle row gives a+(1−a)+a=1+aa + (1 - a) + a = 1 + a. So Gw=(1+a)1Gw = (1 + a)\mathbf 1, and the optimum is proportional to ww.

With the total S=3−aS = 3 - a, the cost is 12κX2(1+a)/S\tfrac12\kappa X^2(1 + a)/S. At a=0.5a = 0.5: 12×1.5/2.5=0.3\tfrac12 \times 1.5/2.5 = 0.3. Equal thirds cost 12κ(X/3)2(3+4a+2a2)=12κX2×5.5/9\tfrac12\kappa(X/3)^2(3 + 4a + 2a^2) = \tfrac12\kappa X^2 \times 5.5/9.

This is the shape in the Obizhaeva-Wang model: large trades at the start and end, and a slower trickle between. The trade at the start has the whole time to decay. The trade at the end leaves nothing behind to hurt, so it can be large.

Classic wrong answer. Assuming a smooth schedule must be best. With a book that recovers, the first and last trades are special, and the model says to take advantage of it.

Follow-up. What if the decay is not exponential? The result depends on the shape of decay. With a power-law decay, or if impact is non-linear, the schedule differs, and some shapes allow a profitable round trip, a sign that the model is not sound.