STRASMORE/EXPLORE 2,170 QUERIES

SPY's median spread ranked against every July session through the 27th, tightest first

Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-08-01, from Market Recap: July 27, 2026, The Day in Numbers.

as of scalar 1×4read in context →
jul27 median spread bps
0.27
rank tightest
18
sessions compared
18
first session
2026-07-01
Rows × columns
1 × 4
Period covered
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for SPY's median spread ranked against every July session through the 27th, tightest first, derived from the stored result.
ColumnTypeRangeNotes
jul27_median_spread_bps number every row is 0.27
rank_tightest number every row is 18
sessions_compared number every row is 18
first_session date 2026-07-01

Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.

the exact SQL behind every number
SELECT round(anyIf(spread_bps, d = toDate('2026-07-27')), 2) AS jul27_median_spread_bps,
       arrayCount(x -> x < anyIf(spread_bps, d = toDate('2026-07-27')), groupArrayIf(spread_bps, d != toDate('2026-07-27'))) + 1 AS rank_tightest,
       count() AS sessions_compared,
       toString(min(d)) AS first_session
FROM (
    SELECT toDate(sip_timestamp) AS d,
           quantileExactIf(0.5)(10000 * (toFloat64(ask_price) - toFloat64(bid_price)) / ((toFloat64(ask_price) + toFloat64(bid_price)) / 2), bid_price > 0 AND ask_price > 0 AND ask_price >= bid_price) AS spread_bps
    FROM global_markets.cache_stocks_quotes
    WHERE ticker = 'SPY'
      AND sip_timestamp >= '2026-07-01 13:30:00' AND sip_timestamp < '2026-07-27 20:00:00'
      AND (toHour(sip_timestamp) * 60 + toMinute(sip_timestamp)) BETWEEN 810 AND 1199
    GROUP BY d
    HAVING countIf(bid_price > 0 AND ask_price > 0 AND ask_price >= bid_price) > 0
)

Run your own version of this

The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.

More from this analysisMarket Recap: July 27, 2026, The Day in Numbers
Session verification: first/last SPY bar ET, regular-bar count, holiday receipts, next closure scalar 1×7 July 28 through 31 on the calendar: closures, ex-dividends, splits, the Friday expiry, and the short-interest lag scalar 1×6 Ex-dividends, splits, listings, news, and the July 27 SEC filing mix scalar 1×14 SPY day move in trailing context (open-to-close, June 26 through July 27) scalar 1×4 Stocks NBBO update count: July 27 vs July 24, with named-ticker updates (millions) scalar 1×6 Options NBBO tape: total updates vs the stock tape, plus the SPY root slice, July 27 scalar 1×3 See all 2,170 queries →