Eman-RazTotal Swap Volum of $COQ on each DEXes
    Updated 10 days ago
    with tab1 as (select platform, 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 avalanche.defi.ez_dex_swaps
    where token_in=lower('0x420FcA0121DC28039145009570975747295f2329')
    and block_timestamp::date between '{{Start_Date}}' and '{{End_Date}}'
    group by 1),

    tab2 as (select platform, 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 avalanche.defi.ez_dex_swaps
    where token_out=lower('0x420FcA0121DC28039145009570975747295f2329')
    and block_timestamp::date between '{{Start_Date}}' and '{{End_Date}}'
    group by 1)
    select tab1.platform as "DEX", selling_volume_usd+buying_volume_usd as "💰Swap Volume (USD)",
    selling_volume_usd AS "🔴Selling Volume (USD)", buying_volume_usd AS "🟢Buying Volume (USD)",
    selling_volume+buying_volume as "💎Swap Volume (COQ)",
    selling_volume AS "🔴Selling Volume (COQ)", buying_volume AS "🟢Buying Volume (COQ)",
    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.platform=tab2.platform
    Last run: 10 days ago
    DEX
    💰Swap Volume (USD)
    🔴Selling Volume (USD)
    🟢Buying Volume (USD)
    💎Swap Volume (COQ)
    🔴Selling Volume (COQ)
    🟢Buying Volume (COQ)
    🩸Selling Count
    💧Buying Count
    🔗Swap Count
    😢Seller Count
    🤗Buyer Count
    1
    pangolin799152.67395715.13403437.542575448523260.111264958096231.081310490427029.0314525236673819253078991
    2
    balancer1456190.6746331.72709858.88422518214912.737212389518147.525210128696765.212345637817237680943
    3
    pharaoh-v114.94.2910.61163296171.26153218899973.4471685144396197.81436342428419
    4
    trader-joe-v2187972947.6492706325.3695266622.2813373591070270264342091289084.869393819413616.952821723181251391479424060
    5
    trader-joe-v1988387260.01495325463.65493061796.368296350913089413805229069585804491121843503614027855956219984066132293548
    6
    uniswap-v240856.2420978.7419877.523077796092.332211745289504.849711332506587.4825108014892569471632
    7
    uniswap-v342859058.821563206.0621295852.7415109602117824.37569543784434.967540058333389.3346925591941061191194516338
    8
    woofi66908.913650.3653258.5448503573874.6598991640563.2976739511933311.3613551061613323
    9
    pharaoh-v220908224.2110622846.7310285377.488329607663028.934163287204492.164166320458536.7713777174113118835524286
    9
    1KB
    4s