STRASMORE/EXPLORE 2,170 QUERIES

SPY sessions up vs down across the month, one cheap receipt

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-07-26, from Market Recap: June 2026.

as of scalar 1×4read in context →
up sessions
9
down sessions
12
flat sessions
0
sessions total
21
Rows × columns
1 × 4
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 sessions up vs down across the month, one cheap receipt, derived from the stored result.
ColumnTypeRangeNotes
up_sessions number every row is 9
down_sessions number every row is 12
flat_sessions number every row is 0
sessions_total number every row is 21

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 countIf(day_ret > 0) AS up_sessions,
       countIf(day_ret < 0) AS down_sessions,
       countIf(day_ret = 0) AS flat_sessions,
       count() AS sessions_total
FROM (
    SELECT toDate(toTimeZone(window_start, 'America/New_York')) AS d,
           round((argMax(toFloat64(close), window_start) / argMin(toFloat64(open), window_start) - 1) * 100, 2) AS day_ret
    FROM global_markets.delayed_stocks_minute_aggs
    WHERE ticker = 'SPY'
      AND window_start >= toDateTime('2026-06-01 00:00:00')
      AND window_start < toDateTime('2026-07-01 00:00:00')
      AND (toHour(window_start) * 60 + toMinute(window_start)) BETWEEN 810 AND 1199
    GROUP BY d
)

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: June 2026
21 sessions, verified from the tape (Juneteenth closure receipt included) scalar 1×3 June: whole-tape options contract volume and same-day-expiry share (one scan) scalar 1×3 June's corporate calendar: dividends, splits, listings, filings (June 30 index gap disclosed) scalar 1×6 May, recomputed identically for contrast (one scan) scalar 1×3 The rank receipt: this June against every prior one (rank 1 = best; self-excluded) scalar 1×5 Advancers vs decliners for June (close vs the last May close), liquidity filter disclosed scalar 1×4 See all 2,170 queries →