BlockTrackeroverall metrics by platform
    Updated 3 days ago
    select
    date_trunc('day', block_timestamp) as date,
    case when platform ilike 'trader-joe%' then 'Trader Joe'
    when platform ilike 'pharaoh%' then 'Pharaoh'
    when platform ilike 'uniswap%' then 'Uniswap'
    when platform ilike 'hashflow%' then 'Hashflow'
    when platform ilike 'kyberswap%' then 'Keberswap'
    else INITCAP(platform) end as Platform_,
    count(distinct origin_from_address) as swapper,
    count(distinct tx_hash) as txns,
    sum(txns) over (partition by platform_ order by date) as cumu_xns,
    sum(coalesce(amount_in_usd,amount_out_usd)) as swap_volume,
    sum(swap_volume) over (partition by platform_ order by date) as cumu_swap_volume,
    avg(coalesce(amount_in_usd,amount_out_usd)) as avg_per_txns,
    avg(swap_volume) over (partition by platform_ order by date) as daily_avg_swap_volume,
    avg(swap_volume) over (partition by platform_ order by date rows between 6 preceding and current row) as ma_7
    from avalanche.defi.ez_dex_swaps
    where (token_in = '{{Token_Address}}' or token_out = '{{Token_Address}}')
    and block_timestamp >= (select min(block_timestamp) from avalanche.defi.ez_dex_swaps
    where (token_in = '{{Token_Address}}' or token_out = '{{Token_Address}}'))
    group by date , platform_
    order by date desc



    Last run: 3 days ago
    DATE
    PLATFORM_
    SWAPPER
    TXNS
    CUMU_XNS
    SWAP_VOLUME
    CUMU_SWAP_VOLUME
    AVG_PER_TXNS
    DAILY_AVG_SWAP_VOLUME
    MA_7
    1
    2025-04-24 00:00:00.000Pangolin677631.05188.980.1753.7054901961.144285714
    2
    2025-04-24 00:00:00.000Pharaoh41321076241331334876.5630370377.67536.094979926303703.77672287542.04571428
    3
    2025-04-24 00:00:00.000Trader Joe127293191807144812.6863130689.46436.182771084631306.8946181914.571428572
    4
    2025-04-23 00:00:00.000Pharaoh92754086220263300098.92629035501.17478.8303714456353893.951212122450871.82
    5
    2025-04-23 00:00:00.000Trader Joe3811215191514331698.8862985876.78215.949791667636220.977575758178221.972857143
    6
    2025-04-23 00:00:00.000Pangolin897561.48187.930.16444444443.75861.137142857
    7
    2025-04-23 00:00:00.000Uniswap3339502.11480697.890.0390740740725299.8889473681.791428571
    8
    2025-04-22 00:00:00.000Pharaoh106250706166181986868.78625735402.25334.1521661626385055.1252472429.11857143
    9
    2025-04-22 00:00:00.000Pangolin10107471.51186.450.1513.8051020411.324285714
    10
    2025-04-22 00:00:00.000Trader Joe241912190299123104.1162654177.999.841127332639328.345918367153580.697142858
    11
    2025-04-21 00:00:00.000Pangolin9197372.69184.940.14157894743.8529166671.25
    12
    2025-04-21 00:00:00.000Pharaoh143159376115483326071.6623748533.47474.8139329056430397.252268042533684.45428571
    13
    2025-04-21 00:00:00.000Trader Joe3181231189387310592.4662531073.79193.515551402644650.245257732148995.837142858
    14
    2025-04-20 00:00:00.000Pharaoh16930416056111989209.37620422461.87528.2021694116462733.97781252370666.10714286
    15
    2025-04-20 00:00:00.000Trader Joe136698188156146237.7462220481.33171.842232667648130.013854167119840.741428572
    16
    2025-04-20 00:00:00.000Pangolin687180.72182.250.093.8776595741.084285714
    17
    2025-04-19 00:00:00.000Pharaoh18039596025702023783.87618433252.5445.3749713916509823.710526312430625.42
    18
    2025-04-19 00:00:00.000Pangolin227100.28181.530.143.9463043481.107142857
    19
    2025-04-19 00:00:00.000Trader Joe134764187458141295.8162074243.59147.490407098653413.090421053118369.051428572
    20
    2025-04-18 00:00:00.000Pharaoh18128935986112051885.28616409468.63573.9539244766557547.538617022539691.30857143
    ...
    271
    31KB
    10s