Query editor
SELECTtoken_sold_symbol,token_sold_address,project AS dex,tx_to AS transaction_entrypoint,COUNT(*) AS swap_legs,COUNT(DISTINCT tx_hash) AS transactions,SUM(token_bought_amount) AS usdc_bought,SUM(amount_usd) AS volume_usd,COUNT_IF(amount_usd IS NULL) AS unpriced_legs,100.0 * SUM(token_bought_amount)/ NULLIF(SUM(SUM(token_bought_amount)) OVER (), 0)AS usdc_volume_share_pctFROM dex.tradesWHERE blockchain = 'ethereum'AND block_month >= CAST(date_trunc('month', CURRENT_TIMESTAMP - INTERVAL '30' DAY) AS date)AND block_time >= CURRENT_TIMESTAMP - INTERVAL '30' DAYAND block_time < CURRENT_TIMESTAMPAND token_bought_address =0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48AND token_sold_address IN (0x4c9edd5852cd905f086c759e8383e09bff1e68b3 -- USDe,0x9d39a5de30e57443bff2a8307a4256c8797a3497 -- sUSDe--,0x6c3ea9036406852006290770bedfcaba0e23a0e8 -- PYUSD--,0xe343167631d89b6ffc58b88d6b7fb0228795491d -- USDG)GROUP BYtoken_sold_symbol,token_sold_address,project,tx_toORDER BY usdc_bought DESC NULLS LAST;