KaskoazulRaydium swaps DEX compare
    Updated 2022-04-03
    with RAYDIUM as (
    select block_timestamp::date as fecha,
    count (tx_id) as ray_swaps,
    count (distinct swapper) as ray_wallets
    from solana.fact_swaps
    where fecha >= '2022-01-01'
    and fecha < CURRENT_DATE - 1
    and swap_program = 'raydium v4'
    and succeeded = 'TRUE'
    group by 1
    ),

    ORCA as (
    select block_timestamp::date as fecha,
    count (tx_id) as orca_swaps,
    count (distinct swapper) as orca_wallets
    from solana.fact_swaps
    where fecha >= '2022-01-01'
    and fecha < CURRENT_DATE - 1
    and swap_program = 'orca'
    and succeeded = 'TRUE'
    group by 1
    ),

    JUPITER as (
    select block_timestamp::date as fecha,
    count (tx_id) as jup_swaps,
    count (distinct swapper) as jup_wallets
    from solana.fact_swaps
    where fecha >= '2022-01-01'
    and fecha < CURRENT_DATE - 1
    and swap_program = 'jupiter aggregator v2'
    and succeeded = 'TRUE'
    group by 1
    ),
    Run a query to Download Data