ArioTop Pairs by Swap Volume
    Updated 2 days ago
    WITH stablecoins as (
    select
    token_address,
    Symbol,
    Name,
    case when DECIMALS is null then 6 else decimals end as decimal
    from solana.price.ez_asset_metadata
    where token_address in (
    'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', -- USDC
    'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', -- USDT
    '2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo', -- PYUSD
    'A1KLoBrKBde8Ty9qtNQUtq3C2ortoC3u7twggz7sEto6', -- USDY
    'USDSwr9ApdHk5bvJKMjzff41FfuX8bSxdKcR81vTwcA', -- USDS
    '9zNQRsGLjNKwCUU5Gq5LR8beUCPzQMVMqKAi3SSZh54u', -- FDUSD
    'susdabGDNbhrnCa6ncrYo81u4s9GM8ecK2UwMyZiq4X', -- sUSD
    'FrBfWJ4qE5sCzKm3k3JaAtqZcXUh4LvJygDeketsrsH4', -- ZUSD
    'HzwqbKZw8HxMN6bF2yFZNrht3c2iXXzpKcFu7uBEDKtr' -- EURC
    )

    union

    select
    'susdabGDNbhrnCa6ncrYo81u4s9GM8ecK2UwMyZiq4X' as token_address,
    'sUSD' as Symbol,
    'Solayer USD' as Name,
    6 as decimal
    ),
    normalized_swaps AS (
    SELECT
    DATE_TRUNC('day', block_timestamp) AS swap_day,
    CASE
    WHEN SWAP_FROM_SYMBOL < SWAP_TO_SYMBOL THEN SWAP_FROM_SYMBOL
    ELSE SWAP_TO_SYMBOL
    END AS token1,
    CASE
    WHEN SWAP_FROM_SYMBOL < SWAP_TO_SYMBOL THEN SWAP_TO_SYMBOL
    Last run: 2 days ago
    SWAP_DAY
    TOKEN_PAIR
    SWAP_VOLUME
    RANK
    1
    2025-03-27 00:00:00.000SOL-USDC2352743381
    2
    2025-03-27 00:00:00.000TRUMP-USDC226671042
    3
    2025-03-27 00:00:00.000FARTCOIN-USDC180769193
    4
    2025-03-27 00:00:00.000SOL-USDT159530824
    5
    2025-03-27 00:00:00.000USDC-USDT122586195
    6
    2025-03-02 00:00:00.000SOL-USDC8548529411
    7
    2025-03-02 00:00:00.000TRUMP-USDC3795906302
    8
    2025-03-02 00:00:00.000USDC-USDT1097665503
    9
    2025-03-02 00:00:00.000SOL-USDT568941294
    10
    2025-03-02 00:00:00.000USDC-WBTC365410405
    11
    2025-03-22 00:00:00.000SOL-USDC1342115981
    12
    2025-03-22 00:00:00.000TRUMP-USDC260112742
    13
    2025-03-22 00:00:00.000SOL-USDT102413433
    14
    2025-03-22 00:00:00.000FARTCOIN-USDC90848704
    15
    2025-03-22 00:00:00.000USDC-USDT84116625
    16
    2025-03-19 00:00:00.000SOL-USDC3525045011
    17
    2025-03-19 00:00:00.000TRUMP-USDC543107412
    18
    2025-03-19 00:00:00.000EURC-USDC259829423
    19
    2025-03-19 00:00:00.000CBBTC-USDC233592974
    20
    2025-03-19 00:00:00.000SOL-USDT207700925
    ...
    155
    8KB
    160s