Query editor
-- [ll] 3F daily volume — Symbiotic vs other (market-wide). tags: ll-- One row per calendar day (continuous 0-filled spine: first 3F fill → CURRENT_DATE) with daily principal-- lent by Symbiotic 3F adapters vs every other 3F maker, plus a running cumulative for each.-- Built on query_9080979 ([ll] 3F all auctions log (market-wide)) — all filtering / dedup / pricing-- lives there. Cumulatives tie to the log: SUM(principal_usd) by lender.WITH fills AS (SELECT CAST(date_trunc('day', time) AS date) AS day, lender, principal_usdFROM query_9080979 /* [ll] 3F all auctions log (market-wide) */),days AS (SELECT d AS dayFROM UNNEST(sequence((SELECT MIN(day) FROM fills), CURRENT_DATE, INTERVAL '1' DAY)) AS t(d)),daily AS (SELECT days.day,COALESCE(SUM(f.principal_usd) FILTER (WHERE f.lender = 'Symbiotic'), 0) AS symbiotic_usd,COALESCE(SUM(f.principal_usd) FILTER (WHERE f.lender <> 'Symbiotic'), 0) AS other_usdFROM daysLEFT JOIN fills f ON f.day = days.dayGROUP BY days.day)SELECTday,symbiotic_usd,other_usd,SUM(symbiotic_usd) OVER (ORDER BY day ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS cumulative_symbiotic_usd,SUM(other_usd) OVER (ORDER BY day ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS cumulative_other_usdFROM dailyORDER BY day