sakineh5021-nIQRzBThe Meme's game
    Updated 2022-03-19
    with shiba_total as ( SELECT cast(block_timestamp as date) as date_swap , sum(amount_usd) as shiba_amount
    from ethereum.dex_swaps
    where token_address = '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce'
    group by 1
    ) ,

    safe_total as ( SELECT cast(block_timestamp as date) as date_swap , sum(amount_usd) as safe_amount
    from ethereum.dex_swaps
    where token_address = '0xcd7492db29e2ab436e819b249452ee1bbdf52214'
    group by 1 )
    ,
    dog_total as ( SELECT cast(block_timestamp as date) as date_swap , sum(amount_usd) as dog_amount
    from ethereum.dex_swaps
    where token_address = '0xbb1ee07d6c7baeb702949904080eb61f5d5e7732'
    group by 1 )
    ,


    shiba_sushi as ( SELECT cast(block_timestamp as date) as date_swap , sum(amount_usd) as shiba_amount
    from ethereum.dex_swaps
    where token_address = '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce'
    and platform = 'sushiswap'
    group by 1
    ) ,

    safe_sushi as ( SELECT cast(block_timestamp as date) as date_swap , sum(amount_usd) as safe_amount
    from ethereum.dex_swaps
    where token_address = '0xcd7492db29e2ab436e819b249452ee1bbdf52214'
    and platform = 'sushiswap'
    group by 1 )
    ,
    dog_sushi as ( SELECT cast(block_timestamp as date) as date_swap , sum(amount_usd) as dog_amount
    from ethereum.dex_swaps
    where token_address = '0xbb1ee07d6c7baeb702949904080eb61f5d5e7732'
    and platform = 'sushiswap'
    group by 1 )
    Run a query to Download Data