{"slug":"spcx-decline-from-peak","qid":"scoreboard","label":"The arc on one row: issue price, first print, June peak, and the latest close","post_title":"SPCX: SpaceX Stock Price Decline From Peak","post_url":"/blog/spcx-decline-from-peak#q-scoreboard","columns":["issue_price","ipo_open","peak_price","peak_label","peak_month","peak_day","latest_label","latest_close","drop_from_peak_usd","decline_from_peak_pct","peak_above_ipo_pct","vs_first_print_pct","vs_issue_pct","spy_period_pct","spy_minus_spcx_pp"],"rows":[{"issue_price":"135","ipo_open":150,"peak_price":225.64,"peak_label":"Jun 16, 2026","peak_month":6,"peak_day":16,"latest_label":"Aug 19, 2026","latest_close":139.31,"drop_from_peak_usd":86.33,"decline_from_peak_pct":38.3,"peak_above_ipo_pct":50.4,"vs_first_print_pct":-7.1,"vs_issue_pct":3.2,"spy_period_pct":3.96,"spy_minus_spcx_pp":11.1}],"shape":"scalar","sql":"WITH\n    spcx_sessions AS (\n        SELECT\n            toDate(toTimeZone(window_start, 'America/New_York')) AS d,\n            argMax(toFloat64(close), window_start) AS c,\n            max(toFloat64(high)) AS hi\n        FROM global_markets.delayed_stocks_minute_aggs\n        WHERE ticker = 'SPCX'\n          AND window_start >= '2026-06-12 00:00:00' AND window_start < now()\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60 + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959\n        GROUP BY d\n        HAVING count() >= 150\n    ),\n    latest_row AS (\n        SELECT max(d) AS latest_d, argMax(c, d) AS latest_c\n        FROM spcx_sessions\n    ),\n    peak_row AS (\n        SELECT max(hi) AS peak_hi, argMax(d, (hi, -toInt32(d))) AS peak_d\n        FROM spcx_sessions\n    ),\n    first_print AS (\n        SELECT round(toFloat64(argMin(open, window_start)), 2) AS ipo_open_px\n        FROM global_markets.delayed_stocks_minute_aggs\n        WHERE ticker = 'SPCX'\n          AND window_start >= '2026-06-12 00:00:00' AND window_start < '2026-06-13 00:00:00'\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60 + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959\n    ),\n    issue_row AS (\n        SELECT toFloat64(final_issue_price) AS issue_px\n        FROM global_markets.stocks_ipos\n        WHERE ticker = 'SPCX'\n        ORDER BY listing_date DESC LIMIT 1\n    ),\n    spy_ret AS (\n        SELECT round((argMax(toFloat64(close), window_start) / argMin(toFloat64(open), window_start) - 1) * 100, 2) AS spy_pct\n        FROM global_markets.delayed_stocks_minute_aggs\n        WHERE ticker = 'SPY'\n          AND window_start >= '2026-06-12 00:00:00' AND window_start < now()\n          AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60 + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959\n    )\nSELECT\n    toString(round(ip.issue_px, 2)) AS issue_price,\n    fp.ipo_open_px AS ipo_open,\n    round(pk.peak_hi, 2) AS peak_price,\n    formatDateTime(pk.peak_d, '%b %e, %Y') AS peak_label,\n    toMonth(pk.peak_d) AS peak_month,\n    toDayOfMonth(pk.peak_d) AS peak_day,\n    formatDateTime(lt.latest_d, '%b %e, %Y') AS latest_label,\n    round(lt.latest_c, 2) AS latest_close,\n    round(pk.peak_hi - lt.latest_c, 2) AS drop_from_peak_usd,\n    round((pk.peak_hi - lt.latest_c) / pk.peak_hi * 100, 1) AS decline_from_peak_pct,\n    round((pk.peak_hi - fp.ipo_open_px) / fp.ipo_open_px * 100, 1) AS peak_above_ipo_pct,\n    round((lt.latest_c / fp.ipo_open_px - 1) * 100, 1) AS vs_first_print_pct,\n    round((lt.latest_c / ip.issue_px - 1) * 100, 1) AS vs_issue_pct,\n    sr.spy_pct AS spy_period_pct,\n    round(sr.spy_pct - (lt.latest_c / fp.ipo_open_px - 1) * 100, 1) AS spy_minus_spcx_pp\nFROM peak_row pk, first_print fp, issue_row ip, latest_row lt, spy_ret sr","computed_at":"2026-08-20T13:21:54.890969+00:00","elapsed":0.581165876}