scottincryptoyvWETH Deposits & Withdraws only
    Updated 2021-08-03
    select
    date_trunc('day', block_timestamp) as date,
    'deposit' as tx_type,
    symbol,
    origin_function_name,
    sum(amount) as native_amount,
    sum(amount_usd) as usd_amount
    from ethereum.udm_events
    where to_address = '0xa258c4606ca8206d8aa700ce2143d7db854d168c'
    and from_address != '0x0000000000000000000000000000000000000000'
    group by 1,2,3,4
    union ALL
    select
    date_trunc('day', block_timestamp) as date,
    'withdrawal' as tx_type,
    symbol,
    origin_function_name,
    sum(amount) as native_amount,
    sum(amount_usd) as usd_amount
    from ethereum.udm_events
    where from_address = '0xa258c4606ca8206d8aa700ce2143d7db854d168c'
    -- and origin_function_name != 'harvest'
    -- and block_timestamp > '2021-07-01'
    group by 1,2,3,4
    Run a query to Download Data