STRASMORE/EXPLORE 2,707 QUERIES

Realized gain per share on each 2024 lot, sold at the same June 2025 price

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-09, from Cost Basis Methods: FIFO vs Specific ID.

as of series 12×3read in context →
Realized gain per share on each 2024 lot, sold at the same June 2025 price — 12 rows by 3 columns, computed from US exchange, SIP and OPRA data.
monthgain_per_shareholding_term
2024-0116.06long-term
2024-0214.84long-term
2024-0322.04long-term
2024-0431.67long-term
2024-0532.4long-term
2024-067.67short-term
2024-07-15.05short-term
2024-08-16.66short-term
2024-09-21.07short-term
2024-10-24.51short-term
2024-11-21.21short-term
2024-12-37.89short-term
Rows × columns
12 × 3
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 Realized gain per share on each 2024 lot, sold at the same June 2025 price, derived from the stored result.
ColumnTypeRangeNotes
month text 12 distinct values (2024-01, 2024-02, 2024-03…)
gain_per_share number -37.89 to 32.4
holding_term text 2 distinct values (long-term, short-term)

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
(
    SELECT toFloat64(argMin(close, date))
    FROM global_markets.stocks_daily_aggs
    WHERE ticker = 'AAPL'
      AND date >= '2025-06-02'
      AND date <  '2025-06-07'
) AS sale_price,
toDate('2025-06-02') AS sale_date
SELECT
    formatDateTime(toStartOfMonth(date), '%Y-%m')                              AS month,
    round(sale_price - toFloat64(argMin(close, date)), 2)                      AS gain_per_share,
    if(dateDiff('day', min(date), sale_date) > 365, 'long-term', 'short-term') AS holding_term
FROM global_markets.stocks_daily_aggs
WHERE ticker = 'AAPL'
  AND date >= '2024-01-01'
  AND date <  '2025-01-01'
GROUP BY toStartOfMonth(date)
ORDER BY toStartOfMonth(date)
⌘/Ctrl + Enter

Work with this data in your AI assistant

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

More from this analysisCost Basis Methods: FIFO vs Specific ID
Twelve monthly AAPL lots, first regular session of each month of 2024 series 12×3 → Cheapest to dearest monthly lot in 2024, five household tickers ranking 5×3 → One full 61 day wash sale window on the tape: AAPL, Dec 1 2025 through Jan 30 2026 series 42×3 → How many trading sessions fit inside a 61 day wash sale window series 30×4 → Every December session and how far its wash sale window reaches into the new year series 22×4 → Average call and put delta by strike distance, AAPL, 20 to 45 days to expiry, June 2026 ranking 5×4 → See all 2,707 queries →