Backtesting in Illiquid Markets: Fill Models
Quoted spread and displayed size at the touch, midday sliceranking ·
2026-10-01 · 4×4
Median session volume and a 2 percent participation budgetranking ·
2026-10-01 · 4×4
Markout curve after a high volume minute, liquid name against thin nameranking ·
2026-10-01 · 6×4
Average absolute minute move by volume quintile, liquid name against thin nameranking ·
2026-10-01 · 5×4
Quoted spread and displayed size at the touch, midday slice
Quoted spread and displayed size at the touch, midday slice
| ticker | quoted_spread_bps | avg_touch_shares | quote_updates |
|---|---|---|---|
| KO | 1.3 | 43678 | 75853 |
| SPY | 0.2 | 26933 | 586907 |
| SJM | 19.5 | 17566 | 5127 |
| AAPL | 1.3 | 11527 | 148339 |
the exact SQL behind every number
SELECT
ticker,
round(avg(toFloat64(ask_price) - toFloat64(bid_price))
/ avg((toFloat64(ask_price) + toFloat64(bid_price)) / 2) * 10000, 1) AS quoted_spread_bps,
round(avg(toFloat64(bid_size + ask_size) / 2) * 100, 0) AS avg_touch_shares,
count() AS quote_updates
FROM global_markets.cache_stocks_quotes
WHERE ticker IN ('SPY', 'AAPL', 'KO', 'SJM', 'LANC')
AND sip_timestamp >= '2026-09-16 00:00:00'
AND sip_timestamp < '2026-09-17 00:00:00'
AND (toHour(toTimeZone(sip_timestamp, 'America/New_York')) * 60
+ toMinute(toTimeZone(sip_timestamp, 'America/New_York'))) >= 600
AND (toHour(toTimeZone(sip_timestamp, 'America/New_York')) * 60
+ toMinute(toTimeZone(sip_timestamp, 'America/New_York'))) < 720
AND bid_price > 0
AND ask_price > bid_price
GROUP BY ticker
ORDER BY avg_touch_shares DESC
More from this analysisBacktesting in Illiquid Markets: Fill Models
Markout curve after a high volume minute, liquid name against thin name
ranking 6×4
→
Average absolute minute move by volume quintile, liquid name against thin name
ranking 5×4
→
Median session volume and a 2 percent participation budget
ranking 4×4
→
How long a top of book quote survives, by latency budget
ranking 9×2
→
See all 3,293 queries →