Afonso_DiazBy Platform
    Updated 2025-02-18
    with

    main as (
    select
    tx_id,
    block_timestamp,
    swapper,
    swap_from_symbol as symbol_in,
    swap_to_symbol as symbol_out,
    abs(nvl(swap_from_amount_usd, swap_to_amount_usd)) as amount_usd,
    case
    when platform ilike 'jupiter%' then 'Jupiter'
    when platform ilike 'raydium%' then 'Raydium'
    when platform ilike 'meteora%' then 'Meteora'
    when platform ilike 'saber%' then 'Saber'
    when platform ilike 'orca%' then 'Orca'
    else initcap(platform)
    end as platform
    from
    solana.marinade.ez_swaps
    where
    succeeded
    and 'MSOL' in (symbol_in, symbol_out)
    )

    select
    platform,
    count(distinct tx_id) as swaps,
    count(distinct swapper) as swappers,
    sum(amount_usd) as volume_usd,
    avg(amount_usd) as average_amount_usd
    from
    main
    group by 1
    order by volume_usd desc
    limit 10
    Last run: 3 days ago
    PLATFORM
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    Jupiter85444423119656806360819.09645.572153194
    2
    Raydium22617875196258746163649.8923.031648789
    3
    Meteora43772445574194612852.8438.963817876
    4
    Orca35513126903138581520.45351.12374696
    5
    Saber349844515851339.51164.285018671
    6
    Phoenix2078411924453384.97214.135931625
    7
    Bonkswap9462276182827.8219.320281095
    7
    347B
    6s