zyroqDEX.
    Updated 2024-11-30
    SELECT
    date_trunc('day',block_timestamp) as date,
    'buy' as action,
    sum(AMOUNT_IN_USD) as volume,
    count(distinct ORIGIN_FROM_ADDRESS) as traders,
    count(DISTINCT TX_HASH) as tx,
    from base.defi.ez_dex_swaps
    where token_in =LOWER('0x55cD6469F597452B5A7536e2CD98fDE4c1247ee4')
    group by 1

    union all

    SELECT
    date_trunc('day',block_timestamp) as date,
    'sell' as action,
    sum(AMOUNT_OUT_USD) as volume,
    count(distinct ORIGIN_FROM_ADDRESS) as traders,
    count(DISTINCT TX_HASH) as tx,
    from base.defi.ez_dex_swaps
    where token_in =LOWER('0x55cD6469F597452B5A7536e2CD98fDE4c1247ee4')
    group by 1




    QueryRunArchived: QueryRun has been archived