ZSaeddaily swap transactions
    Updated 2023-02-11
    select
    BLOCK_TIMESTAMP::date as day,
    sum(AMOUNT_IN) *-1 as eth_volume,
    sum(AMOUNT_IN_USD)*-1 as usd_volume,
    count(DISTINCT tx_hash) as num_tx,
    count(DISTINCT ORIGIN_FROM_ADDRESS) as num_form_address,
    count(DISTINCT ORIGIN_TO_ADDRESS) as num_to_address,
    'Swap From ETH ' as category
    from
    ethereum.core.ez_dex_swaps
    where
    SYMBOL_IN = 'WETH'
    group by
    day
    UNION
    select
    BLOCK_TIMESTAMP::date as day,
    sum(AMOUNT_OUT) as eth_volume,
    sum(AMOUNT_OUT_USD) as usd_volume,
    count(DISTINCT tx_hash) as num_tx,
    count(DISTINCT ORIGIN_FROM_ADDRESS) as num_form_address,
    count(DISTINCT ORIGIN_TO_ADDRESS) as num_to_address,
    'Swap TO ETH' as category
    from
    ethereum.core.ez_dex_swaps
    where
    SYMBOL_OUT = 'WETH'
    group by
    day
    Run a query to Download Data