Eman-RazSwap Over Time
    Updated 2024-01-29
    with tab1 as (select date_trunc('day',block_timestamp) as date, sum(amount_in_usd) as selling_volume_usd, sum(amount_in) as selling_volume,
    count(distinct tx_hash) as selling_count, count(distinct origin_from_address) as seller_count
    from ethereum.defi.ez_dex_swaps
    where token_in=lower('0x7D8146cf21e8D7cbe46054e01588207b51198729')
    group by 1),
    tab2 as (select date_trunc('day',block_timestamp) as date, sum(amount_out_usd) as buying_volume_usd, sum(amount_out) as buying_volume,
    count(distinct tx_hash) as buying_count
    , count(distinct origin_from_address) as buyer_count
    from ethereum.defi.ez_dex_swaps
    where token_out=lower('0x7D8146cf21e8D7cbe46054e01588207b51198729')
    group by 1)
    select tab1.date as "Date", selling_volume_usd+buying_volume_usd as "Swap Volume (USD)",
    selling_volume_usd AS "Selling Volume (USD)", buying_volume_usd AS "Buying Volume (USD)",
    buying_volume_USD-selling_volume_USD as "Net Volume (USD)"
    , selling_volume+buying_volume as "Swap Volume (BOB)",
    selling_volume AS "Selling Volume (BOB)", buying_volume AS "Buying Volume (BOB)",
    buying_volume-selling_volume as "Net Volume (BOB)",
    SELLING_COUNT AS "Selling Count",
    buying_count as "Buying Count",
    selling_count+buying_count as "Swap Count", seller_count as "Seller Count", buyer_count as "Buyer Count"
    from tab1 left join tab2 on tab1.date=tab2.date
    order by 1
    Last run: about 1 year agoAuto-refreshes every 24 hours
    Date
    Swap Volume (USD)
    Selling Volume (USD)
    Buying Volume (USD)
    Net Volume (USD)
    Swap Volume (BOB)
    Selling Volume (BOB)
    Buying Volume (BOB)
    Net Volume (BOB)
    Selling Count
    Buying Count
    Swap Count
    Seller Count
    Buyer Count
    1
    2023-04-19 00:00:00.0007290373331883.953355587651248.983934785680634.96579198029385.979302526828198318
    2
    2023-04-20 00:00:00.0003633470128244.611776462808510.791857007319733.8180544511223.01981456216136177231198
    3
    2023-04-21 00:00:00.0001206518.96595789.6610729.3614939.76804440675354.175404817787659.029399622887695.146-5194899963.882326959021597427509
    4
    2023-04-22 00:00:00.0001303338.77639242.14664096.6324854.49463379899215.782229599233596.948233780665618.8344181432021.88635419459878257250
    5
    2023-04-23 00:00:00.0002913248.691435209.311478039.3842830.07560810058899.832276788152662.201284021906237.637233753575.429266239541577337583
    6
    2023-04-24 00:00:00.0002161713.991088479.561073234.43-15245.13321298366067.306161602302219.262159696063848.044-1906238371.217935548371391338561
    7
    2023-04-25 00:00:00.0001706705.29854392.86852312.43-2080.43322584681198.678161807659559.712160777021638.966-1030637920.745364935991092288342
    8
    2023-04-26 00:00:00.0001745950.21865305.87880644.3415338.47277419609933.402137353218667.622140066391265.782713172598.158554326611093233386
    9
    2023-04-27 00:00:00.0005668594.962781804.292886790.67104986.38435180459375.636212785318701.295222395140674.3419609821973.046721097190930065451201
    10
    2023-04-28 00:00:00.00021275769.7910558078.210717691.59159613.390000001658742945749.622326377822632.782332365123116.8415987300484.0588432655261852614952896
    11
    2023-04-29 00:00:00.00010300698.845208053.685092645.16-115408.519999999298999931675.139151326918768.957147673012906.182-3653905862.7749619022851475311201785
    12
    2023-04-30 00:00:00.00013645282.36789072.736856209.5767136.84318902475675.295158155970167.033160746505508.2622590535341.228727083811651914092289
    13
    2023-05-01 00:00:00.00018240361.539046429.499193932.04147502.550000001322010809071.032159359923321.979162650885749.0533290962427.0734624273794622113602553
    14
    2023-05-02 00:00:00.00014365187.917260478.787104709.13-155769.649999999242832639862.912122690518660.583120142121202.329-2548397458.2536817862825461110801986
    15
    2023-05-03 00:00:00.0008854093.454438976.134415117.32-23858.81190041602969.96495116708876.585194924894093.379-191814783.2061161316211034268691497
    16
    2023-05-04 00:00:00.00012200493.656072847.016127646.6454799.629999999239582085748.231119097540074.932120484545673.2991387005598.367421547220237498801512
    17
    2023-05-05 00:00:00.00035312798.517495573.6217817224.88321651.260000005425962102096.613210766364284.796215195737811.8184429373527.0219127144950766414153437
    18
    2023-05-06 00:00:00.00053033086.6826479697.4426553389.2473691.800000001320391471395.566159827804685.497160563666710.069735862024.571838379267261051822504726
    19
    2023-05-07 00:00:00.00018430579.999346273.639084306.36-261967.270000001129619563149.53365795018235.892563824544913.6404-1970473322.2521818082957476511952165
    20
    2023-05-08 00:00:00.00027334519.9213826529.5113507990.41-318539.099999996335753172153.778169589766157.832166163405995.946-3426360161.8857722133052526513781893
    ...
    286
    42KB
    210s