Day 282 — The shape of the book, and how fast it refills
Saturday, 15 May 2027 · Week 41 of 52 · Microstructure · Study day · 60 min
Depth decides what a trade costs and resiliency decides how long that cost lasts, and both are measurable from the reconstruction you built yesterday.
What you should be able to do tonight
- Report the depth profile as a function of distance from the mid, and how it varies through the session.
- Measure resiliency as the time for depth to recover after a large trade, and give a number.
Tasks 60 min
30 min Build the depth profile: average displayed size against distance from the mid in ticks, computed separately for the first thirty minutes, the middle of the day and the last thirty minutes. The intraday pattern is strong and it explains why execution algorithms trade the way they do.
30 min Measure resiliency: find the largest trades of the day, and for each plot the depth at the touch in the seconds before and after. Report the median recovery half-life. That number is what decides whether splitting an order into ten pieces one second apart is different from doing it all at once.
Resources
Deliverable
notebooks/day-282-depth.ipynb with a depth profile at three times of day and a measured resiliency half-life.
Checkpoint
Your book recovers half its depth in 300 milliseconds after a large trade. What does that tell you about how to split an order?
Prepare for tomorrow
Ten minutes tonight so Day 283, Sunday, 16 May 2027 starts clean. This is what the evening email sends you.
Track one resting order at the touch through your reconstruction and record how much size was ahead of it and whether it eventually traded.
Do it for twenty orders.
Count how many traded and how many were cancelled.