Afonso_DiazTop token pairs
    Updated 2025-05-10
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    swapper,
    symbol_in,
    symbol_out,
    token_in,
    token_out,
    iff(amount_in_usd < 1e7, amount_in_usd, amount_out_usd) as amount_usd
    from
    aptos.defi.ez_dex_swaps
    where
    amount_usd < 1e7
    and platform = 'pancake'
    )

    select
    symbol_in || ' -> ' || symbol_out as token_pair,
    count(distinct tx_hash) as swaps,
    count(distinct swapper) as swappers,
    sum(amount_usd) as volume_usd,
    avg(amount_usd) as average_amount_usd
    from
    main
    where
    token_pair is not null
    and amount_usd > 0
    group by 1
    order by volume_usd desc
    limit 10


    Last run: 30 days ago
    TOKEN_PAIR
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    APT -> USDC2629807332567457082302.909418172.782834795
    2
    USDC -> APT2324696312627454378279.354236193.978638855
    3
    Cake -> APT60259410712248451158.116398779.063915596
    4
    APT -> Cake75537512672548019344.105003562.885386616
    5
    USDC -> WETH3256244892745149397.523368136.2124808
    6
    WETH -> USDC4303209012644905329.9454904102.76030844
    7
    GUI -> APT2238863258242234018.7184123161.62048523
    8
    APT -> GUI2940623157042155264.5062777125.970854033
    9
    Cake -> USDC2752723743414575180.709521849.983472941
    10
    USDC -> Cake2748054494714332148.698390549.122739419
    10
    600B
    9s