STRASMORE/EXPLORE 2,830 QUERIES

cap_by_year

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-09-30, from aapl-market-cap-and-share-count.

as of ranking 5×2read in context →
cap_by_year — 5 rows by 2 columns, computed from US exchange, SIP and OPRA data.
yearmarket_cap_usd_tn
20212.933
20222.073
20232.999
20243.794
20254.026
Rows × columns
5 × 2
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 cap_by_year, derived from the stored result.
ColumnTypeRangeNotes
year text 5 distinct values (2021, 2022, 2023…)
market_cap_usd_tn number 2.073 to 4.026 US dollars

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.

WITH
    share_counts AS
    (
        SELECT
            toYear(period_end)                                                      AS yr,
            argMax(toFloat64(diluted_shares_outstanding), (period_end, filing_date)) AS shares_out
        FROM global_markets.stocks_income_statements
        WHERE has(tickers, 'AAPL')
          AND period_end >= '2021-01-01'
          AND diluted_shares_outstanding > 0
        GROUP BY yr
    ),
    last_prices AS
    (
        SELECT
            toYear(date)                   AS yr,
            argMax(toFloat64(close), date) AS last_close
        FROM global_markets.stocks_daily_aggs
        WHERE ticker = 'AAPL'
          AND date >= '2021-01-01'
        GROUP BY yr
    )
SELECT
    toString(p.yr)                                     AS year,
    round(s.shares_out * p.last_close / 1e12, 3)       AS market_cap_usd_tn
FROM last_prices AS p
INNER JOIN share_counts AS s ON s.yr = p.yr
ORDER BY year
⌘/Ctrl + Enter

Work with this data in your AI assistant

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