Query editor
-- h/t to @ilemi for helping with the hex-decode-- h/t to @hildobby for the tx volume query this forked fromSELECT date_trunc('day', bt.mint_time) AS time,count(*) as cnt_ordinals,sum(count(*)) over (order by date_trunc('day', mint_time) range UNBOUNDED PRECEDING) AS cumulative_inscriptions,avg(count(*)) over (order by date_trunc('day', mint_time) range interval '30' day PRECEDING) AS trailing_avg_count,sum(bt.fee * pu.price)/1e8 AS ordinal_fees_usd,sum(bt.fee)/1e8 as ordinal_fees_btc,sum(sum(bt.fee * pu.price)/1e8) over (order by date_trunc('day', mint_time) range UNBOUNDED PRECEDING) AS cumulative_fees_usd,sum(sum(bt.fee)/1e8) over (order by date_trunc('day', mint_time) range UNBOUNDED PRECEDING) AS cumulative_fees_btcFROM query_2417656 bt -- pipe in the base queryLEFT JOIN prices.usd pu ON pu.symbol='BTC' -- join prices and inscriptionsAND pu.contract_address IS NULLAND pu.minute = date_trunc('minute', mint_time)--WHERE bt.block_height > 767429 -- first inscription-- AND bt.output_value IS NOT NULLGROUP BY 1ORDER BY 1