Sbhn_NP2023-09-04 05:10 PM
    Updated 2023-09-04
    select date_trunc('day',block_timestamp) as date,
    case when platform in ('trader-joe-v1','trader-joe-v2') then 'Trader Joe' else 'Other DEXs' end as platforms,
    count(DISTINCT tx_HASH) as txs,
    count(DISTINCT origin_from_address) as traders,
    sum(amount_in_usd) as usd_volume
    from avalanche.defi.ez_dex_swaps
    where block_timestamp::date>= current_date-30
    group by 1,2
    having usd_volume is not null


    Run a query to Download Data