Query editor
WITH daily_sales AS (SELECTDATE_TRUNC('day', block_time) AS day,SUM(amount_usd) AS total_volume_USD,SUM(amount_raw / 1e18) AS total_volume_MATIC,COUNT(*) AS total_sales,COUNT(DISTINCT seller) AS unique_sellers,COUNT(DISTINCT buyer) AS unique_buyersFROM nft.tradesWHEREnft_contract_address = 0x7D3c94c51C7299F3d17F63a2fa024faC3F3b7B61GROUP BYDATE_TRUNC('day', block_time))SELECTday,total_sales,SUM(total_sales) OVER (ORDER BY day) AS cumulative_sales,total_volume_USD,SUM(total_volume_USD) OVER (ORDER BY day) AS cumulative_total_volume_USD,total_volume_MATIC,SUM(total_volume_MATIC) OVER (ORDER BY day) AS cumulative_total_volume_MATIC,unique_sellers,unique_buyersFROM daily_salesORDER BYday DESC