jak-IWUlHqUSDT/wETH number and volume of swaps
    Updated 2022-10-10
    select 'uniswapv3' as sushi_uni,
    case when sum( (AMOUNT0_USD + AMOUNT1_USD) / 2) is null then 0
    else sum( (AMOUNT0_USD + AMOUNT1_USD) / 2) end as volume_usd ,
    count(*) as swap,
    BLOCK_TIMESTAMP::date
    from ethereum.uniswapv3.ez_swaps
    where TOKEN0_SYMBOL = 'USDT' and TOKEN1_SYMBOL='WETH' and BLOCK_TIMESTAMP::date >= '2022-01-01'
    group by 4

    UNION

    select 'sushiswap' as sushi_uni , case when sum( (amount_in_usd + amount_out_usd) / 2) is null then 0
    else sum( (amount_in_usd + amount_out_usd) / 2) end as volume_usd ,
    count(*) as swap,
    BLOCK_TIMESTAMP::date
    from ethereum.sushi.ez_swaps
    where symbol_in = 'USDT' and symbol_out='WETH' and BLOCK_TIMESTAMP::date >= '2022-01-01'
    group by 4
    Run a query to Download Data