STRASMORE/EXPLORE 2,170 QUERIES 22Y EQUITIES · 12Y OPTIONS

2,170 answered market questions

every one with its exact SQL, its result and the date it was computed · free, no signup

Quote-Driven vs Order-Driven Markets
Quoted spread and displayed size at the NBBO, one June 2026 hourranking · 2026-08-11 · 5×3Preview: 5 ranked values, smallest first. AAPL option trade sizes, one June 2026 sessionranking · 2026-08-11 · 5×4Preview: 5 ranked values, largest first. Share of consolidated volume reported off exchange, by monthseries · 2026-08-11 · 12×5Preview: a 12-point series, ending higher. How US share volume concentrates across symbols, May 2026ranking · 2026-08-11 · 5×4Preview: 5 ranked values, largest first.
Quoted spread and displayed size at the NBBO, one June 2026 hour

Quoted spread and displayed size at the NBBO, one June 2026 hour

most recentas of ranking 5×3read in context →
Quoted spread and displayed size at the NBBO, one June 2026 hour — 5 rows by 3 columns, computed from US exchange, SIP and OPRA data.
symbolquoted_spread_bpstouch_size_lots
SPY0.27180
AAPL1.01100
KO1.25450
MSFT1.53100
PG3.29350
the exact SQL behind every number
WITH quotes AS
(
    SELECT
        ticker,
        toUInt64(sequence_number)           AS weight,
        toFloat64(bid_price)                AS bid,
        toFloat64(ask_price)                AS ask,
        toFloat64(bid_size + ask_size) / 2  AS touch_lots
    FROM global_markets.cache_stocks_quotes
    WHERE ticker IN ('SPY', 'AAPL', 'MSFT', 'PG', 'KO')
      AND sip_timestamp >= '2026-06-16 14:30:00'
      AND sip_timestamp <  '2026-06-16 15:30:00'
      AND bid_price > 0
      AND ask_price > bid_price
)
SELECT
    ticker                                                                                       AS symbol,
    round(quantileDeterministic(0.5)(10000 * (ask - bid) / ((ask + bid) / 2), weight), 2)        AS quoted_spread_bps,
    round(quantileDeterministic(0.5)(touch_lots, weight), 1)                                     AS touch_size_lots
FROM quotes
GROUP BY ticker
ORDER BY quoted_spread_bps
$