Query editor
-- ZARP Complete Historical Volume and Transaction Data with Growth AnalysisWITH base_dex_volume AS (SELECTDATE_TRUNC('day', block_time) AS date,SUM(amount_usd) AS daily_volume_usd,COUNT(*) AS dex_transaction_countFROM dex.tradesWHERE (token_bought_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04OR token_sold_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04)AND blockchain = 'base'-- Removed time filter to get ALL historical dataGROUP BY 1),base_transfers AS (SELECTDATE_TRUNC('day', block_time) AS date,COUNT(*) AS total_transaction_countFROM tokens.transfersWHERE contract_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04AND blockchain = 'base'-- Removed time filter to get ALL historical dataGROUP BY 1),ethereum_dex_volume AS (SELECTDATE_TRUNC('day', block_time) AS date,SUM(amount_usd) AS daily_volume_usd,COUNT(*) AS dex_transaction_countFROM dex.tradesWHERE (token_bought_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04OR token_sold_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04)AND blockchain = 'ethereum'-- Removed time filter to get ALL historical dataGROUP BY 1),ethereum_transfers AS (SELECTDATE_TRUNC('day', block_time) AS date,COUNT(*) AS total_transaction_countFROM tokens.transfersWHERE contract_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04AND blockchain = 'ethereum'-- Removed time filter to get ALL historical dataGROUP BY 1),polygon_dex_volume AS (SELECTDATE_TRUNC('day', block_time) AS date,SUM(amount_usd) AS daily_volume_usd,COUNT(*) AS dex_transaction_countFROM dex.tradesWHERE (token_bought_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04OR token_sold_address = 0xb755506531786C8aC63B756BaB1ac387bACB0C04)AND blockchain = 'polygon'-- Removed time filter to get ALL historical dataGROUP BY 1),polygon_transfers AS (SELECTDATE_TRUNC('day', block_time) AS date,