solomixSwap to stats
    Updated 3 days ago
    with monthly_transactions as (
    select
    date_trunc('month', block_timestamp::date) as month,
    count(tx_id) as tx_count,
    swap_to_symbol
    from solana.marinade.ez_swaps
    where block_timestamp::date between '2024-01-01' and '2025-01-01'
    group by 3,1
    ),
    ranked_symbols as (
    select
    swap_to_symbol,
    sum(tx_count) as total_tx_count,
    rank() over (order by sum(tx_count) desc) as rank
    from monthly_transactions
    group by 1
    )
    select
    swap_to_symbol,
    sum(case when month = '2024-01-01' then tx_count else 0 end) as "January 2024",
    sum(case when month = '2024-02-01' then tx_count else 0 end) as "February 2024",
    sum(case when month = '2024-03-01' then tx_count else 0 end) as "March 2024",
    sum(case when month = '2024-04-01' then tx_count else 0 end) as "April 2024",
    sum(case when month = '2024-05-01' then tx_count else 0 end) as "May 2024",
    sum(case when month = '2024-06-01' then tx_count else 0 end) as "June 2024",
    sum(case when month = '2024-07-01' then tx_count else 0 end) as "July 2024",
    sum(case when month = '2024-08-01' then tx_count else 0 end) as "August 2024",
    sum(case when month = '2024-09-01' then tx_count else 0 end) as "September 2024",
    sum(case when month = '2024-10-01' then tx_count else 0 end) as "October 2024",
    sum(case when month = '2024-11-01' then tx_count else 0 end) as "November 2024",
    sum(case when month = '2024-12-01' then tx_count else 0 end) as "December 2024",
    sum(tx_count) as "Total Transactions"
    from monthly_transactions
    join ranked_symbols using(swap_to_symbol)
    where rank <= 10
    group by 1
    Last run: 3 days ago
    SWAP_TO_SYMBOL
    January 2024
    February 2024
    March 2024
    April 2024
    May 2024
    June 2024
    July 2024
    August 2024
    September 2024
    October 2024
    November 2024
    December 2024
    Total Transactions
    1
    MSOL85665259848539530212016366036611368356096073967561164001288561376882758863
    2
    SOL178924124154117739653026428234596415304727365348810996781178062967032
    3
    USDC603744181363222288911583619110255073225942133294102221554444435759
    4
    MNDE3173525779325871154012576770871136544405569831297613096172766
    5
    BSOL11029747721018354017021118131387389747413303442787179
    6
    JITOSOL16916266622019744102313172618381263143125821763113582252
    7
    USDT1162381081606841981965108916572880173420125548577462671
    8
    RAY651030736899119468261319702412163122414962630738593
    9
    JLP3487327646184935251088148020823097126296813504
    9
    730B
    5s