STRASMORE/EXPLORE 2,173 QUERIES 22Y EQUITIES · 12Y OPTIONS

2,173 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-08-22 · 15×4Preview: a 15-point series, roughly flat. KO and AAPL closes across the July 2026 holiday week, with settlement datesseries · 2026-08-22 · 9×5Preview: a 9-point series, ending higher. Trailing year: calendar days a sale waited to settleranking · 2026-08-22 · 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-08-24Mon, Aug 24Tue, Aug 251
2026-08-25Tue, Aug 25Wed, Aug 261
2026-08-26Wed, Aug 26Thu, Aug 271
2026-08-27Thu, Aug 27Fri, Aug 281
2026-08-28Fri, Aug 28Mon, Aug 313
2026-08-31Mon, Aug 31Tue, Sep 11
2026-09-01Tue, Sep 1Wed, Sep 21
2026-09-02Wed, Sep 2Thu, Sep 31
2026-09-03Thu, Sep 3Fri, Sep 41
2026-09-04Fri, Sep 4Tue, Sep 84
2026-09-08Tue, Sep 8Wed, Sep 91
2026-09-09Wed, Sep 9Thu, Sep 101
2026-09-10Thu, Sep 10Fri, Sep 111
2026-09-11Fri, Sep 11Mon, Sep 143
2026-09-14Mon, Sep 14Tue, Sep 151
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
$