STRASMORE/EXPLORE 2,170 QUERIES

SPY's median spread ranked against every July session, 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-02, from Market Recap: July 30, 2026, The Day in Numbers.

as of scalar 1×4read in context →
jul30 median spread bps
0.27
rank tightest
19
sessions compared
21
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, tightest first, derived from the stored result.
ColumnTypeRangeNotes
jul30_median_spread_bps number every row is 0.27
rank_tightest number every row is 19
sessions_compared number every row is 21
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-30')), 2) AS jul30_median_spread_bps,
       arrayCount(x -> x < anyIf(spread_bps, d = toDate('2026-07-30')), groupArrayIf(spread_bps, d != toDate('2026-07-30'))) + 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-30 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 30, 2026, The Day in Numbers
Session verification: first/last SPY bar ET, regular-bar count, holiday receipts, next closure scalar 1×7 July 31 and August 3 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 30 SEC filing mix scalar 1×14 Stocks NBBO update count: July 30 vs July 29, with named-ticker updates (millions) scalar 1×6 Options NBBO tape: total updates vs the stock tape, plus the SPY root slice, July 30 scalar 1×3 SPY day move in trailing context (open-to-close, June 30 through July 30) scalar 1×4 See all 2,170 queries →