Query editor
-- LIVE: reads the uploaded table, no longer a pinned VALUES block.-- Source: DefiLlama derivatives dailyVolume, collected by src/perpvenues and-- pushed by research/robinhood-perps/push-dune.mjs into-- dune.nocommas.dataset_rhlighter_venue_daily. Re-run that pipeline to refresh.---- CALENDAR-DAY, COMPLETE DAYS ONLY: the collector drops the day in progress.---- SEASONALITY WARNING: both ratios are flattered on weekends. Robinhood Perps is-- a points farm and is not seasonal, while Lighter mainnet and Hyperliquid take a-- normal weekend drawdown, so the share spikes every Sat/Sun for a calendar-- reason rather than a demand one. Read Saturdays against Saturdays.---- The uploaded columns land as varchar, hence the casts.WITH v AS (SELECTCAST(day AS date) AS day,max(CASE WHEN venue = 'hyperliquid' THEN CAST(volume_usd AS double) END) AS hl,max(CASE WHEN venue = 'lighter-mainnet' THEN CAST(volume_usd AS double) END) AS lm,max(CASE WHEN venue = 'lighter-rh' THEN CAST(volume_usd AS double) END) AS rhFROM dune.nocommas.dataset_rhlighter_venue_dailyGROUP BY CAST(day AS date))SELECTday,100.0 * rh / NULLIF(rh + lm, 0) AS pct_of_lighter_network,100.0 * rh / NULLIF(hl, 0) AS pct_of_hyperliquidFROM vORDER BY day