pouya_22Liquidswap-stats-swappers-dist-volume
    Updated 2025-03-05
    -- forked from Liquidswap-stats-swappers-dist-count @ https://flipsidecrypto.xyz/studio/queries/adbb3c48-ead5-439b-a911-f12a420c0e91

    with swappers as (
    select
    swapper,
    sum(amount_in_usd) as volume
    from aptos.defi.ez_dex_swaps
    where platform = 'liquidswap'
    and block_timestamp >= dateadd(month, -{{month}}, current_date)
    group by swapper
    )

    select
    case when volume < 1 then '< $1'
    when volume >= 1 and volume < 10 then '$1 - $10'
    when volume > 10 and volume <= 100 then '$10 - $100'
    when volume > 100 and volume <= 1000 then '$100 - $1,000'
    when volume > 1000 and volume <= 10000 then '> $1,000 - $10,000'
    else '> $10,000'
    end as batch,
    count(distinct swapper) as swappers
    from swappers
    group by batch
    order by swappers desc





    Last run: about 1 month ago
    BATCH
    SWAPPERS
    1
    > $10,00081935
    2
    > $1,000 - $10,000103238
    3
    < $1375211
    4
    $100 - $1,000201894
    5
    $10 - $100306135
    6
    $1 - $10278142
    6
    134B
    4s