STRASMORE/EXPLORE 3,094 QUERIES

do_regime

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-10-05, from us-stock-market-hours-tehran-time.

as of series 2×7read in context →
do_regime — 2 rows by 7 columns, computed from US exchange, SIP and OPRA data.
tehran_opentehran_closeet_opentehran_leadsession_countfirst_sessionlast_session
17:0023:3009:307.51892025-09-022026-10-02
18:0000:3009:308.5832025-11-032026-03-06
Rows × columns
2 × 7
Period covered
to
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 do_regime, derived from the stored result.
ColumnTypeRangeNotes
tehran_open text 2 distinct values (17:00, 18:00)
tehran_close text 2 distinct values (00:30, 23:30)
et_open text 1 distinct value (09:30)
tehran_lead number 7.5 to 8.5
session_count number 83 to 189 count
first_session date 2025-09-02 to 2025-11-03
last_session date 2026-03-06 to 2026-10-02

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.

Run it yourself

This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.

SELECT
    tehran_open,
    tehran_close,
    et_open,
    tehran_lead,
    session_count,
    first_session,
    last_session
FROM
(
    SELECT
        formatDateTime(toTimeZone(first_bar, 'Asia/Tehran'), '%H:%i')                                AS tehran_open,
        formatDateTime(toTimeZone(last_bar + INTERVAL 1 MINUTE, 'Asia/Tehran'), '%H:%i')             AS tehran_close,
        formatDateTime(toTimeZone(first_bar, 'America/New_York'), '%H:%i')                           AS et_open,
        round((
              (toHour(toTimeZone(first_bar, 'Asia/Tehran')) * 60
             + toMinute(toTimeZone(first_bar, 'Asia/Tehran')))
            - (toHour(toTimeZone(first_bar, 'America/New_York')) * 60
             + toMinute(toTimeZone(first_bar, 'America/New_York')))
        ) / 60, 1)                                                                                   AS tehran_lead,
        count()                                                                                      AS session_count,
        toString(min(session_date))                                                                  AS first_session,
        toString(max(session_date))                                                                  AS last_session
    FROM
    (
        SELECT
            toDate(toTimeZone(window_start, 'America/New_York')) AS session_date,
            min(window_start)                                    AS first_bar,
            max(window_start)                                    AS last_bar
        FROM global_markets.delayed_stocks_minute_aggs
        WHERE ticker = 'SPY'
          AND window_start >= today() - 400
          AND window_start <  today() - 2
          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
               + toMinute(toTimeZone(window_start, 'America/New_York'))) >= 570
          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
               + toMinute(toTimeZone(window_start, 'America/New_York'))) < 960
        GROUP BY session_date
        HAVING countDistinct(window_start) = 390
    )
    GROUP BY tehran_open, tehran_close, et_open, tehran_lead
)
ORDER BY tehran_lead
⌘/Ctrl + Enter

Work with this data in your AI assistant

Opens ready to query, with this page's data. Free, no account.