STRASMORE/EXPLORE 3,256 QUERIES 22Y EQUITIES · 12Y OPTIONS

3,256 answered market questions

every one with its exact SQL, its result and the date it was computed · free, no signup

Good Faith Violations in Cash Accounts
Every session ahead, and the day a sale made in it settlesseries · 2026-10-04 · 15×4Preview: a 15-point series, ending higher. KO and AAPL closes across the July 2026 holiday week, with settlement datesseries · 2026-10-04 · 9×5Preview: a 9-point series, ending higher. Trailing year: calendar days a sale waited to settleranking · 2026-10-04 · 4×3Preview: 4 ranked values, largest first.
Every session ahead, and the day a sale made in it settles

Every session ahead, and the day a sale made in it settles

most recentas of series 15×4read in context →
Every session ahead, and the day a sale made in it settles — 15 rows by 4 columns, computed from US exchange, SIP and OPRA data.
trade_datetraded_onsettles_oncalendar_days_to_settle
2026-10-05Mon, Oct 5Tue, Oct 61
2026-10-06Tue, Oct 6Wed, Oct 71
2026-10-07Wed, Oct 7Thu, Oct 81
2026-10-08Thu, Oct 8Fri, Oct 91
2026-10-09Fri, Oct 9Mon, Oct 123
2026-10-12Mon, Oct 12Tue, Oct 131
2026-10-13Tue, Oct 13Wed, Oct 141
2026-10-14Wed, Oct 14Thu, Oct 151
2026-10-15Thu, Oct 15Fri, Oct 161
2026-10-16Fri, Oct 16Mon, Oct 193
2026-10-19Mon, Oct 19Tue, Oct 201
2026-10-20Tue, Oct 20Wed, Oct 211
2026-10-21Wed, Oct 21Thu, Oct 221
2026-10-22Thu, Oct 22Fri, Oct 231
2026-10-23Fri, Oct 23Mon, Oct 263
the exact SQL behind every number
SELECT
    toString(s.d)                                                                                                    AS trade_date,
    concat(formatDateTime(s.d, '%a'), ', ', formatDateTime(s.d, '%b'), ' ', toString(toDayOfMonth(s.d)))              AS traded_on,
    concat(formatDateTime(s.next_open, '%a'), ', ', formatDateTime(s.next_open, '%b'), ' ', toString(toDayOfMonth(s.next_open))) AS settles_on,
    dateDiff('day', s.d, s.next_open)                                                                                AS calendar_days_to_settle
FROM
(
    SELECT
        d,
        leadInFrame(d) OVER (ORDER BY d ROWS BETWEEN 1 FOLLOWING AND 1 FOLLOWING) AS next_open
    FROM
    (
        SELECT d
        FROM
        (
            SELECT today() + arrayJoin(range(0, 45)) AS d
        )
        WHERE toDayOfWeek(d) BETWEEN 1 AND 5
          AND d NOT IN
          (
              SELECT date
              FROM global_markets.stocks_market_holidays
              WHERE status = 'closed'
          )
    )
) AS s
WHERE s.next_open > s.d
ORDER BY s.d
LIMIT 15
$