Position weights from last close times share count
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-07, from Portfolio Analysis in SQL: Weights to Drawdown.
| ticker | shares | last_close | position_value | weight_pct | priced_through |
|---|---|---|---|---|---|
| AAPL | 120 | 336.17 | 40341 | 25.71 | Oct 7, 2026 |
| KO | 300 | 86.57 | 25971 | 16.55 | Oct 7, 2026 |
| XOM | 150 | 165.88 | 24881 | 15.86 | Oct 7, 2026 |
| MSFT | 45 | 525.69 | 23656 | 15.08 | Oct 7, 2026 |
| JNJ | 90 | 255.89 | 23030 | 14.68 | Oct 7, 2026 |
| NVDA | 80 | 237.61 | 19009 | 12.12 | Oct 7, 2026 |
- Rows × columns
- 6 × 6
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
ticker |
text | 6 distinct values (AAPL, JNJ, KO…) | |
shares |
number | 45 to 300 | count |
last_close |
number | 86.57 to 525.69 | US dollars |
position_value |
number | 19,009 to 40,341 | |
weight_pct |
number | 12.12 to 25.71 | percent |
priced_through |
text | 1 distinct value (Oct 7, 2026) |
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 holdings AS
(
SELECT 'AAPL' AS ticker, 120 AS shares
UNION ALL SELECT 'MSFT', 45
UNION ALL SELECT 'NVDA', 80
UNION ALL SELECT 'KO', 300
UNION ALL SELECT 'JNJ', 90
UNION ALL SELECT 'XOM', 150
),
marks AS
(
SELECT
ticker,
argMax(toFloat64(close), (date, _ingest_time)) AS last_close,
max(date) AS last_session
FROM global_markets.stocks_daily_aggs
WHERE ticker IN ('AAPL', 'MSFT', 'NVDA', 'KO', 'JNJ', 'XOM')
AND date >= today() - 30
GROUP BY ticker
),
positions AS
(
SELECT
h.ticker AS ticker,
h.shares AS shares,
round(m.last_close, 2) AS last_close,
round(h.shares * m.last_close, 0) AS position_value,
m.last_session AS last_session
FROM holdings AS h
INNER JOIN marks AS m ON m.ticker = h.ticker
)
SELECT
ticker,
shares,
last_close,
position_value,
round(100 * position_value / sum(position_value) OVER (), 2) AS weight_pct,
formatDateTime(last_session, '%b %e, %Y') AS priced_through
FROM positions
ORDER BY weight_pct DESC
Work with this data in your AI assistant
Opens ready to query, with this page's data. Free, no account.