Query editor
WITH PVR_LAND_Trades AS (SELECTDATE_TRUNC('day', block_time) AS trade_day,ROUND(SUM(CAST(amount_original AS DOUBLE)), 1) AS volume_ron,COUNT(DISTINCT unique_trade_id) AS number_of_sales,ROUND(MAX(amount_original), 1) AS top_trade_ron,COUNT(DISTINCT buyer) AS distinct_buyer_wallets,ROUND(SUM(royalty_fee_amount), 1) AS daily_creator_royalties_ron,COUNT(DISTINCT tx_from) + COUNT(DISTINCT tx_to) AS user_count,ROUND(SUM(CAST(amount_original AS DOUBLE)) / COUNT(DISTINCT unique_trade_id), 1) AS average_price_ron,COUNT(DISTINCT token_id) AS new_listings_per_dayFROM nft.tradesWHERE blockchain = 'ronin'AND nft_contract_address = FROM_HEX('5c6dd3991df69507f96543e22d7022ef17c25a8a')AND block_time >= TIMESTAMP '2025-06-05 00:00:00'AND currency_contract IN (FROM_HEX('0000000000000000000000000000000000000000'), FROM_HEX('e514d9deb7966c8be0ca922de8a064264ea6bcd4'))GROUP BY 1), cumulative_trades AS (SELECTtrade_day,volume_ron,ROUND(SUM(volume_ron) OVER (ORDER BY trade_day ASC), 1) AS cumulative_volume_ron,number_of_sales,ROUND(SUM(number_of_sales) OVER (ORDER BY trade_day ASC), 1) AS cumulative_total_sales,top_trade_ron,distinct_buyer_wallets,daily_creator_royalties_ron,ROUND(SUM(daily_creator_royalties_ron) OVER (ORDER BY trade_day ASC), 1) AS cumulative_creator_royalties,user_count,average_price_ron,new_listings_per_dayFROM PVR_LAND_Trades)SELECTtrade_day,volume_ron,cumulative_volume_ron,number_of_sales,cumulative_total_sales,average_price_ron,top_trade_ron,distinct_buyer_wallets,daily_creator_royalties_ron,cumulative_creator_royalties,user_count,new_listings_per_dayFROM cumulative_tradesORDER BY trade_day ASC;