A monthly buyer's lot prices and running average cost: VTI, July 2021 to December 2022
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-08-01, from Selling Mutual Funds at a Loss: How Basis Works.
| month | month_label | lot_price_usd | average_cost_usd |
|---|---|---|---|
| 2021-07 | July 2021 | 226.72 | 226.72 |
| 2021-08 | August 2021 | 233.17 | 229.94 |
| 2021-09 | September 2021 | 222.03 | 227.31 |
| 2021-10 | October 2021 | 236.92 | 229.71 |
| 2021-11 | November 2021 | 233.47 | 230.46 |
| 2021-12 | December 2021 | 241.48 | 232.3 |
| 2022-01 | January 2022 | 226.82 | 231.52 |
| 2022-02 | February 2022 | 221.16 | 230.22 |
| 2022-03 | March 2022 | 227.76 | 229.95 |
| 2022-04 | April 2022 | 207.14 | 227.67 |
| 2022-05 | May 2022 | 206.57 | 225.75 |
| 2022-06 | June 2022 | 188.74 | 222.66 |
| 2022-07 | July 2022 | 206.28 | 221.4 |
| 2022-08 | August 2022 | 198.56 | 219.77 |
| 2022-09 | September 2022 | 179.37 | 217.08 |
| 2022-10 | October 2022 | 194 | 215.64 |
| 2022-11 | November 2022 | 204.07 | 214.96 |
| 2022-12 | December 2022 | 191.25 | 213.64 |
- Rows × columns
- 18 × 4
- 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 |
|---|---|---|---|
month |
text | 18 distinct values (2021-07, 2021-08, 2021-09…) | |
month_label |
text | 18 distinct values (April 2022, August 2021, August 2022…) | |
lot_price_usd |
number | 179.37 to 241.48 | US dollars |
average_cost_usd |
number | 213.64 to 232.3 | 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 monthly AS (
SELECT toStartOfMonth(toDate(toTimeZone(window_start, 'America/New_York'))) AS month_start,
argMax(close, window_start) AS close_price
FROM global_markets.delayed_stocks_minute_aggs
WHERE ticker = 'VTI'
AND toDate(toTimeZone(window_start, 'America/New_York')) >= toDate('2021-07-01')
AND toDate(toTimeZone(window_start, 'America/New_York')) <= toDate('2022-12-31')
AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
+ toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959
GROUP BY month_start
)
SELECT formatDateTime(month_start, '%Y-%m') AS month,
formatDateTimeInJodaSyntax(month_start, 'MMMM yyyy') AS month_label,
round(close_price, 2) AS lot_price_usd,
round(avg(close_price) OVER (ORDER BY month_start
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 2) AS average_cost_usd
FROM monthly
ORDER BY month_start
Work with this data in your AI assistant
Opens ready to query, with this page's data. Free, no account.