Query editor
-- Per-fill rows across ALL OptionManagers (current fleet + every legacy/previous OM).-- SOURCE: dune.starkware.result_supervega_events = hourly materialized extract of the protocol's-- events from starknet.events (query 8703705). Reading it instead of starknet.events turns a-- ~2 min / ~14 credit scan into a few seconds; data lags the chain by up to 1h. (2026-09-14)-- Deployments matched by the DeploymentCreated selector with NO emitter allowlist.-- Underlying + decimals: explicit factory map (query_8599437 = current-fleet factories,-- verified on-chain via get_underlying()) with a strike-band FALLBACK for unlisted-- legacy emitters (all expired, pre-ZEC):-- >= $10k -> WBTC (8 dec)-- >= $1k -> ETH (18 dec)-- >= $100 -> ZEC (8 dec) [added Jun 17, 2026]-- else -> STRK (18 dec)-- (Fallback alone misclassified ZEC series with strikes >= $1k as ETH/18dec once ZEC-- strikes crossed $1,000 in Aug 2026 -> ZEC EOY rows vanished. Fixed 2026-09-03.)---- Premium = USDC actually paid by the buyer (price_usdc * options_bought).-- Notional = USD exposure to the underlying (options_bought * strike_usd).-- expiry = series expiry (DeploymentCreated data[6], unix seconds).-- option_type = tenor of the series: 'daily' if expiry - deployment <= 7 days,-- 'monthly' if <= 45 days (month-end expiry), else 'yearly' (EOY series).WITH deployments AS (SELECTd.option_token,d.order_book,d.exerciser,d.strike_usd,d.expiry,CASE WHEN date_diff('hour', d.deployed_at, d.expiry) / 24.0 <= 7 THEN 'daily'WHEN date_diff('hour', d.deployed_at, d.expiry) / 24.0 <= 45 THEN 'monthly'ELSE 'yearly' END AS option_type,COALESCE(fm.underlying,CASE WHEN d.strike_usd >= 10000 THEN 'WBTC'WHEN d.strike_usd >= 1000 THEN 'ETH'WHEN d.strike_usd >= 100 THEN 'ZEC'ELSE 'STRK' END) AS underlying,COALESCE(fm.underlying_decimals,CASE WHEN d.strike_usd >= 10000 OR (d.strike_usd >= 100 AND d.strike_usd < 1000)THEN 8 ELSE 18 END) AS underlying_decimalsFROM (SELECTfrom_address AS factory,element_at(data,1) AS option_token,element_at(data,2) AS order_book,element_at(data,3) AS exerciser,block_time AS deployed_at,from_unixtime(CAST(varbinary_to_uint256(element_at(data,6)) AS bigint)) AS expiry,(varbinary_to_uint256(element_at(data,5)) * power(2, 128)+ varbinary_to_uint256(element_at(data,4))) / 1e6 AS strike_usdFROM dune.starkware.result_supervega_eventsWHERE element_at(keys,1) = 0x01a524c8138b89479b4211c85519557e5c4e11fa64bef2a5870329b0d64c0a75AND cardinality(data) >= 6AND block_time >= TIMESTAMP '2026-04-01') dLEFT JOIN query_8599437 fm ON fm.factory = d.factory),fills AS (SELECTe.block_time,e.transaction_hash,e.from_address AS order_book,