order book
2 posts
- Quant interview toolkit · market depth
The best ask is £100.01. Your 700-share buy will not cost £100.01
A displayed top-of-book quote applies only to the size resting there. Walk a simple order book, compute VWAP and separate spread crossing from depth cost.
- Quant techniques · market microstructure
Better than the mid: order-book imbalance and the microprice
When 8 lots sit on the bid and 2 on the ask, the next tick is much more likely to be up, so the mid price is a stale estimate of value. The size-weighted mid uses the imbalance; a simple queue-race model shows why it works and where it overshoots. The idea behind Stoikov’s microprice.