SPY's week in trailing-year context (open-to-close weekly returns)
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-12, from Market Recap: Week of July 20, 2026.
week open to close pct
-1.1
rank best
43
weeks compared
53
first week
2025-07-21
sessions this week
5
- Rows × columns
- 1 × 5
- Period covered
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
week_open_to_close_pct |
number | every row is -1.1 | percent |
rank_best |
number | every row is 43 | |
weeks_compared |
number | every row is 53 | |
first_week |
date | 2025-07-21 | |
sessions_this_week |
number | every row is 5 |
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(ret, wk = toDate('2026-07-20')), 2) AS week_open_to_close_pct,
arrayCount(x -> x > anyIf(ret, wk = toDate('2026-07-20')), groupArrayIf(ret, wk != toDate('2026-07-20'))) + 1 AS rank_best,
count() AS weeks_compared,
toString(min(wk)) AS first_week,
anyIf(sessions_measured, wk = toDate('2026-07-20')) AS sessions_this_week
FROM (
SELECT toStartOfWeek(toDate(toTimeZone(window_start, 'America/New_York')), 1) AS wk,
uniqExact(toDate(toTimeZone(window_start, 'America/New_York'))) AS sessions_measured,
(argMax(toFloat64(close), window_start) / argMin(toFloat64(open), window_start) - 1) * 100 AS ret
FROM global_markets.delayed_stocks_minute_aggs
WHERE ticker = 'SPY'
AND window_start >= toDateTime('2025-07-21 00:00:00')
AND window_start < toDateTime('2026-07-25 00:00:00')
AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60 + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959
GROUP BY wk
HAVING sessions_measured >= 3
)
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: Week of July 20, 2026
Next week on the calendar: closures, ex-dividends, splits, and the expiry pull
scalar 1×6
→
Session verification: sessions, bars, holiday rows, up and down closes, next closure
scalar 1×9
→
The week's corporate calendar: dividends, splits, listings, news
scalar 1×9
→
Weekly breadth: July 24 regular close vs July 17 regular close, names with $5M+ traded during the week
scalar 1×6
→
Weekly movers: ten biggest gainers and decliners, regular-hours closes, $5M+ traded, splits excluded
table 20×6
→
Sector ETFs, full-week change: July 24 close vs July 17 close
ranking 11×3
→
See all 2,170 queries →