FatemeTheLady06. Pairs copy
    Updated 2025-02-10
    with top10 as (
    SELECT
    concat(SYMBOL_IN, ' -> ', SYMBOL_OUT) as Pairs,
    count(DISTINCT tx_hash) AS Swaps
    from
    avalanche.defi.ez_dex_swaps
    WHERE
    TRUNC(block_timestamp, 'day') >= '2024-12-01'
    GROUP BY
    1
    order by
    2 desc
    limit
    18
    )
    SELECT
    TRUNC(block_timestamp, 'day') as date,
    case
    when concat(SYMBOL_IN, ' -> ', SYMBOL_OUT) in (
    select
    Pairs
    from
    top10
    ) then concat(SYMBOL_IN, ' -> ', SYMBOL_OUT)
    else 'others'
    end as Pairs,
    count(DISTINCT tx_hash) AS Swaps
    from
    avalanche.defi.ez_dex_swaps
    WHERE
    TRUNC(block_timestamp, 'day') >= '2024-12-01'
    GROUP BY
    1,
    2
    order by
    1 asc
    Last run: 2 months ago
    DATE
    PAIRS
    SWAPS
    1
    2024-12-01 00:00:00.000WETH.e -> WAVAX2522
    2
    2024-12-01 00:00:00.000WAVAX -> USDt928
    3
    2024-12-01 00:00:00.000USDC -> WAVAX5052
    4
    2024-12-01 00:00:00.000WAVAX -> BIG1700
    5
    2024-12-01 00:00:00.000COQ -> WAVAX500
    6
    2024-12-01 00:00:00.000WAVAX -> USDC5443
    7
    2024-12-01 00:00:00.000USDC -> USDt778
    8
    2024-12-01 00:00:00.000WAVAX -> COQ800
    9
    2024-12-01 00:00:00.000USDt -> USDC851
    10
    2024-12-01 00:00:00.000others26547
    11
    2024-12-01 00:00:00.000BIG -> WAVAX1505
    12
    2024-12-01 00:00:00.000WAVAX -> BTC.b2384
    13
    2024-12-01 00:00:00.000AUSD -> WAVAX910
    14
    2024-12-01 00:00:00.000BTC.b -> WAVAX2464
    15
    2024-12-01 00:00:00.000USDt -> WAVAX946
    16
    2024-12-01 00:00:00.000WAVAX -> WETH.e2538
    17
    2024-12-02 00:00:00.000USDt -> USDC1618
    18
    2024-12-02 00:00:00.000USDC -> USDt1746
    19
    2024-12-02 00:00:00.000COQ -> WAVAX1788
    20
    2024-12-02 00:00:00.000WAVAX -> USDt2030
    ...
    1268
    60KB
    4s