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

When Did the US Stock Market Start? 1792
Trading sessions by day of the week, calendar year 2019series · 2026-08-08 · 7×3Preview: a 7-point series, roughly flat. Where SPY volume lands inside the day, 30 minute buckets, October 2024series · 2026-08-08 · 32×3Preview: a 16-point series, roughly flat. The single busiest clock minute of the month, October 2024ranking · 2026-08-08 · 5×3Preview: 5 ranked values, largest first. Weekdays with no US equity session, 2014 through 2023ranking · 2026-08-08 · 10×2Preview: 10 ranked values, smallest first.
Trading sessions by day of the week, calendar year 2019

Trading sessions by day of the week, calendar year 2019

most recentas of series 7×3read in context →
Trading sessions by day of the week, calendar year 2019 — 7 rows by 3 columns, computed from US exchange, SIP and OPRA data.
weekdaytrading_dayscalendar_days
Monday4852
Tuesday5253
Wednesday5152
Thursday5052
Friday5152
Saturday052
Sunday052
the exact SQL behind every number
SELECT
    formatDateTime(cal.day, '%W')   AS weekday,
    countIf(s.sessions > 0)         AS trading_days,
    count()                         AS calendar_days
FROM
(
    SELECT toDate('2019-01-01') + arrayJoin(range(365)) AS day
) AS cal
LEFT JOIN
(
    SELECT
        date     AS d,
        count()  AS sessions
    FROM global_markets.stocks_daily_aggs
    WHERE ticker = 'SPY'
      AND date >= '2019-01-01'
      AND date <  '2020-01-01'
    GROUP BY d
) AS s ON s.d = cal.day
GROUP BY weekday
ORDER BY min(toDayOfWeek(cal.day))
$