NuveveCryptoArchivedMonthly Buying Volume
    Updated 2022-09-10
    with aETH as (
    select
    date_trunc('month', block_timestamp) as month,
    sum(amount_out_usd) as total_usd
    from ethereum.core.ez_dex_swaps
    where token_out = '0xe95a203b1a91a908f9b9ce46459d101078c2c3cb' -- aETH
    and block_timestamp >= current_date - 365
    group by month
    ),

    stETH as (
    select
    date_trunc('month', block_timestamp) as month,
    sum(amount_out_usd) as total_usd
    from ethereum.core.ez_dex_swaps
    where token_out = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84' -- stETH
    and block_timestamp >= current_date - 365
    group by month
    ),

    rETH as (
    select
    date_trunc('month', block_timestamp) as month,
    sum(amount_out_usd) as total_usd
    from ethereum.core.ez_dex_swaps
    where token_out = '0xae78736cd615f374d3085123a210448e74fc6393' -- rETH
    and block_timestamp >= current_date - 365
    group by month
    )

    select
    aETH.month as month,
    aETH.total_usd as aETH,
    stETH.total_usd as stETH,
    rETH.total_usd as rETH
    from aETH
    Run a query to Download Data