{"slug":"what-is-gamma-exposure-gex","qid":"dte_buckets","label":"July 6, 2026: whole-tape options volume by days to expiry","post_title":"What Is Gamma Exposure (GEX)? Dealer Hedging","post_url":"/blog/what-is-gamma-exposure-gex#q-dte_buckets","columns":["days_to_expiry","contracts_mm","pct_of_volume"],"rows":[{"days_to_expiry":"0 (expires today)","contracts_mm":23.52,"pct_of_volume":38.8},{"days_to_expiry":"1 day","contracts_mm":2.71,"pct_of_volume":4.5},{"days_to_expiry":"2-7 days","contracts_mm":12.61,"pct_of_volume":20.8},{"days_to_expiry":"8-30 days","contracts_mm":10.51,"pct_of_volume":17.3},{"days_to_expiry":"31+ days","contracts_mm":11.28,"pct_of_volume":18.6}],"shape":"ranking","sql":"SELECT multiIf(dte = 0, '0 (expires today)',\n               dte = 1, '1 day',\n               dte <= 7, '2-7 days',\n               dte <= 30, '8-30 days',\n               '31+ days') AS days_to_expiry,\n       round(sum(volume) / 1e6, 2) AS contracts_mm,\n       round(100.0 * sum(volume) / sum(sum(volume)) OVER (), 1) AS pct_of_volume\nFROM (\n    SELECT toFloat64(volume) AS volume,\n           dateDiff('day',\n                    toDate(toTimeZone(window_start, 'America/New_York')),\n                    toDateOrNull(concat('20', substring(ticker, length(ticker) - 14, 6)))) AS dte\n    FROM global_markets.options_minute_aggs\n    WHERE window_start >= toDateTime('2026-07-06 08:00:00')\n      AND window_start <  toDateTime('2026-07-07 04:00:00')\n      AND toDate(toTimeZone(window_start, 'America/New_York')) = toDate('2026-07-06')\n)\nWHERE dte >= 0\nGROUP BY days_to_expiry\nORDER BY min(dte)","computed_at":"2026-08-13T14:40:10.209992+00:00","elapsed":0.002746036}