Ali3NBy DEX & Pair COQ Swap Pairs' Stats in Avalanche DEXs
    Updated 2025-03-10
    with pricet as (
    select date_trunc (hour,hour) as day,
    token_address,
    symbol,
    decimals,
    avg (price) as usdprice
    from avalanche.price.ez_prices_hourly
    where token_address = '0x420fca0121dc28039145009570975747295f2329'
    group by 1,2,3,4

    union all

    select hour::date as day,
    token_address,
    'USDC' as symbol,
    decimals,
    avg (price) as usdprice
    from avalanche.price.ez_prices_hourly
    where token_address ilike '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E'
    group by 1,2,3,4),

    SimpleSwap as (
    SELECT
    block_timestamp,
    tx_hash,
    decoded_log:maker as maker,
    decoded_log:makerAsset as makerAsset,
    decoded_log:makerAmountReceived as makerAmountReceived,
    decoded_log:taker as taker,
    decoded_log:takerAsset as takerAsset,
    decoded_log:takerAmountReceived as takerAmountReceived,
    decoded_log
    FROM
    avalanche.core.ez_decoded_event_logs
    WHERE
    contract_address='0xeed3c159f3a96ab8d41c8b9ca49ee1e5071a7cdd' and event_name='SwapExecuted'
    Auto-refreshes every 24 hours
    QueryRunArchived: QueryRun has been archived