Day 283 — Queue position, and what it is worth in basis points
Sunday, 16 May 2027 · Week 41 of 52 · Microstructure · Study day · 60 min
Week 2 told you queue position matters; today you measure what it is worth, which is the number that decides whether a passive strategy is viable for you at all.
What you should be able to do tonight
- Report the fill probability of a passive order as a function of the size ahead of it in the queue.
- Convert that into the expected cost difference between a passive and an aggressive order, in basis points.
Tasks 60 min
35 min Estimate the fill curve: across many resting orders in your sample, report the probability of executing within a fixed horizon as a function of queue position, controlling roughly for the time of day. The curve will fall steeply, which is why queue position is the asset high-frequency firms compete for.
25 min Turn it into money: an aggressive order pays the spread with certainty, a passive order saves the spread with the fill probability you measured and otherwise misses the trade. Compute the expected cost of each for a specific position in the queue, and find the queue position at which they are equal.
Resources
Deliverable
notebooks/day-283-queue.ipynb with a fill probability curve against queue position and the break-even position between passive and aggressive.
Checkpoint
You are 5,000 shares back in the queue. What is your fill probability, and is a passive order still worth placing?
Prepare for tomorrow
Ten minutes tonight so Day 284, Monday, 17 May 2027 starts clean. This is what the evening email sends you.
Compute the effective spread on every trade in your sample: twice the signed difference between the trade price and the prevailing mid.
Then compute the realized spread using the mid five minutes later.
The gap between the two averages is tomorrow’s whole subject.