{"slug":"which-stocks-have-leaps","qid":"leaps_universe","label":"leaps_universe","post_title":"which-stocks-have-leaps","post_url":"/blog/lang/vi/which-stocks-have-leaps#q-leaps_universe","columns":["horizon","snapshot_label","underlyings"],"rows":[{"horizon":"trên 365 ngày","snapshot_label":"24/09/2026","underlyings":1558},{"horizon":"trên 456 ngày","snapshot_label":"24/09/2026","underlyings":1449},{"horizon":"trên 548 ngày","snapshot_label":"24/09/2026","underlyings":1010},{"horizon":"trên 730 ngày","snapshot_label":"24/09/2026","underlyings":1008}],"shape":"ranking","sql":"WITH (SELECT max(date) FROM global_markets.options_greeks) AS asof\nSELECT\n    concat('trên ', toString(threshold), ' ngày') AS horizon,\n    formatDateTime(asof, '%d/%m/%Y')              AS snapshot_label,\n    countDistinct(underlying_symbol)              AS underlyings\nFROM\n(\n    SELECT\n        underlying_symbol,\n        max(dateDiff('day', date, expiration_date)) AS max_dte\n    FROM global_markets.options_greeks\n    WHERE date = asof\n      AND underlying_symbol NOT IN ('SPCX')\n    GROUP BY underlying_symbol\n) AS per_name\nARRAY JOIN [365, 456, 548, 730] AS threshold\nWHERE max_dte > threshold\nGROUP BY threshold, snapshot_label\nORDER BY threshold","computed_at":"2026-09-27T15:45:41.998672+00:00","elapsed":0.002738767}