Market MicroStructure
Market MicroStructure
Week 4
traders.berkeley.edu
Announcements
● Ask questions!!!
○ If something is unclear to you, it’s unclear to others as well.
● See Ed regarding quizzes/HWs.
Brainteaser/Warmup
This connects pretty directly to today’s lecture, let’s see how.
● You have 10 X_i’s which are IID uniform (0, 1) random variables. What is
● E[min({X_i})]
● Var[min({X_i})]
Solution
The probability density function is min({X_i}) = 10(1-x)^9. The rest is just
integration.
You’d think HFT firms would be mad about this but they were
the ones who understood the exchanges best, had the best
technology, and the incentives to act on these new rules
Dark Pools, briefly
Basically private, dark (not lit) exchanges!
A decade ago there used to be like 5, now there’s dozens
40%-50% of US equity trades happen on dark pools
You send orders into the pool, and if there’s a trade to be made, you will get traded
Who runs dark pools? Banks and other large financial institutions (pay to be in the pool)
Usually trade at NBBO midpoint, even if
Ex: NBBO is $100 @ $101, dark pool resting buy at $102; someone sends a sell at $100
Transact at $100.50 (NBBO mid) regardless => Very little information leakage to public!
How does PFOF work with NBBO?
AKA why does Citadel Securities pay Robinhood $800 million every year?
Robinhood routes their customers’ order to CitSec (or IMC, etc.) and CitSec packages them
into a bulk order (package a bunch of 5-share buys into a 10,000 share buy)
NBBO is $150 @ $151
CitSec sells 10,000 shares of AAPL to the RH consumers at $150.90 => price improvement!
Now they’re short 10k AAPL shares, so they go to dark pools to buy back the shares
Go to dark pool with Goldman Sachs and trade at NBBO midpoint ($150.50) to buy shares
CitSec profits $0.40 per share, Robinhood customers get price improvement ($0.10/share)
Payment for Order Flow (PFOF)
Robinhood bundles user order flow and sells it to trading firms,
which are rewarded for good execution
Trading firms need to provide good execution or they will get less flow
Options - Orders must be put on exchange regardless of who pays for it
Equities - Orders can just immediately be internalized by the firm (so far)
Why pay for order flow?
Is this all bad for you?
● No you get a discount on the spread, but that doesn’t really change the fact that the
trading firm still wins too.
● It is illegal for a trading firm to use your order flow to inform their trading.
What Makes Execution Good?
● Price improvement
● Speed
● Each seller weights these factors differently.
Game - Order Execution Optimization
Break and Questions
The Futures Chain
● Futures have an expiration date, where the underlying product needs to be
delivered to the holder of that future.
● Exchanges will typically have monthly expiry futures contracts.
Quick Intro To Options
● Options are characterized by both an expiry and a strike price
● Call options give the holder the right to buy a security at a specified price
● Put options give the holder are the right to sell a security at a specified price
● European options: can only be exercised on expiry
● American options: can be exercised any time before expiry
The Option Chain: Scaling Complexity
● Options have an extra dimension, which means that the exchange stores
options both by expiry and strike price
● There are many similarities between options which are close on the
strike/expiry surface, especially when we go out into the extremes.
● Because there are so many more options, the spreads will often be much
wider.
○ Why might a mispricing in the options space might not be good?
How does a trading firm interact with an exchange?
● The HFT stack!
Outgoing orders
Colocation: History
● The speed of light is actually a limiting factor in trading. Trading is often
done on the scale of micro- and nano- seconds.
○ Light travels about a foot in a nanosecond
● Firms would often compete to be the closest to the exchange, buying nearby
servers or buildings, or even hanging wires out of windows to reduce latency.
● Exchanges thought this was unfair, so they came up with a solution.
Colocation: Solution
● Exchanges sell nearby server space!
○ For a lot of money
● They also only allow connects with wires of a fixed length.
○ How do you deal with wire variance?
● This levels the distance-latency playing field.
Cross-Exchange Speeds
● Information from one exchange matters a lot at another exchange!
● McKay Brothers
Questions?