execution
9 posts
- Quant interview toolkit · portfolio execution
Selling one stock can make the second stock harder to sell
Cross-impact means a portfolio liquidation cost cannot always be priced ticket by ticket. Use a two-asset linear model and identify when its assumptions break.
- Quant interview toolkit · maker economics
The maker rebate is real. The adverse fill is more expensive
A posted order can earn spread and rebate on every fill yet lose money because fills arrive when price is about to move against it. Measure conditional, not unconditional, price changes.
- 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 interview toolkit · order execution
Your stop triggered at £100. Why did the sale happen at £85?
A stop price is a trigger, not a guaranteed fill. Use a gap example to separate intended loss, actual execution, and the different trade-off in stop-limit orders.
- Quant interview toolkit · P&L accounting
Selling half a winning position did not create half its profit
Track cash, inventory and marks through a partial sale. Realized and unrealized P&L divide an economic result by accounting convention; execution spread and fees change the result itself.
- Quant interview toolkit · selection bias
Why the cheapest broker in your test may not be cheap
Two brokers with the same true cost can produce an apparently excellent winner. Derive the selection bias from noisy estimates and design a fair follow-up test.
- Quant interview toolkit · execution metrics
Split one order and the slippage dashboard improves
The cash lost to execution can stay exactly the same while average ticket slippage falls from 50 bp to 1 bp. Follow the denominator to see why.
- Quant techniques · optimal execution
Selling a big order: the Almgren–Chriss trade-off
Trade fast and you pay market impact. Trade slowly and the price wanders while you wait. Almgren–Chriss turns that into a mean–variance problem whose answer is a sinh curve, with one number, κ, deciding how front-loaded the schedule is.
- Quant techniques · execution
The square-root law of market impact, and what it says about capacity
Across stocks, futures and decades of data, the price impact of a large order grows like the square root of its size: about σ·√(Q/V). That one rule tells you how much a trade costs, why doubling an order less than doubles its cost per share, and that a strategy’s capacity grows with the square of its alpha.