Abolfazl_771025Swap actiiy
    Updated 2023-05-15
    select
    date_trunc('week',block_timestamp) as date,
    'Shib' as token,
    count(DISTINCT tx_hash) as swap_count,
    count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
    sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
    from ethereum.core.ez_dex_swaps
    where (symbol_in like 'SHIB' or Symbol_out like 'SHIB')
    group by 1,2
    union
    select
    date_trunc('week',block_timestamp) as date,
    'Pepe' as token,
    count(DISTINCT tx_hash) as swap_count,
    count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
    sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
    from ethereum.core.ez_dex_swaps
    where (symbol_in like 'PEPE' or Symbol_out like 'PEPE')
    group by 1,2
    union
    select
    date_trunc('week',block_timestamp) as date,
    'Elon' as token,
    count(DISTINCT tx_hash) as swap_count,
    count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
    sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
    from ethereum.core.ez_dex_swaps
    where (symbol_in like 'ELON' or Symbol_out like 'ELON')
    group by 1,2
    union
    select
    date_trunc('week',block_timestamp) as date,
    'Chad' as token,
    count(DISTINCT tx_hash) as swap_count,
    count(distinct ORIGIN_FROM_ADDRESS) as swappers_count,
    sum(case when amount_in_usd is not null then Amount_in_usd else Amount_out_usd end) as volume_usd
    Run a query to Download Data