Afonso_Diaztop token pairs
    Updated 2025-02-02
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    swapper,
    symbol_in,
    symbol_out,
    amount_in_usd,
    amount_out_usd,
    nvl(amount_in_usd, amount_out_usd) as amount_usd
    from aptos.defi.ez_dex_swaps
    where platform = 'thala'
    and block_timestamp>= '2024-01-01'
    and block_timestamp< '2025-01-01'
    )

    select
    iff(symbol_in > symbol_out, symbol_in || ' - ' || symbol_out, symbol_out || ' - ' || symbol_in) 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 amount_usd > 0
    group by 1
    order by 4 desc
    limit 10


    Last run: 3 months ago
    TOKEN_PAIR
    SWAPS
    SWAPPERS
    VOLUME_USD
    AVERAGE_AMOUNT_USD
    1
    thAPT - APT1900782369831495622584.43114785.705061633
    2
    USDC - MOD1298789702911121545023.47964838.823064786
    3
    USDC - APT1682617136676351242943.793899185.158817424
    4
    amAPT - APT21504129749150429325.102597671.913441467
    5
    USDT - USDC28697254093103899314.630862352.059049505
    6
    THL - MOD4061433345994411723.591943224.8310371
    7
    USDC - USDC2840443079981212485.0717557279.581260855
    8
    WETH - USDC2247562351838647343.4908878169.069870207
    9
    THL - APT274752399386525357.8501643618.41937372
    10
    WBTC - USDC4588645095988502.11967737129.615646935
    10
    592B
    7s