FatemeTheLady00 particular address copy
    Updated 2023-05-05
    -- forked from 00 particular address @ https://flipsidecrypto.xyz/edit/queries/34f621e4-c12d-449f-9c9d-00e0dbd06351

    select
    date_trunc('{{Interval}}',block_timestamp) as "TimeStamp",
    count(distinct tx_hash) as "Swaps",
    sum(amount_in_usd) as "volume(USD)",
    sum(AMOUNT_IN) as "volume in",
    sum("Swaps") over(order by "TimeStamp" asc) as "cumulative swaps"
    from
    avalanche.core.ez_dex_swaps
    where origin_from_address='{{Address}}'
    and block_timestamp::date between '{{StartDate}}' and '{{EndDate}}'
    group by 1
    order by 1 asc


    Run a query to Download Data