Afonso_DiazTop collections
    Updated 2024-10-12
    with t as (
    select
    tx_id,
    block_timestamp,
    seller_address,
    buyer_address,
    platform_name,
    nft_address,
    amount_usd,
    project_name as collection_name
    from
    sei.nft.ez_nft_sales
    where
    block_timestamp::date between '{{ start_date }}' and '{{ end_date }}'
    and amount_usd < 1e6
    and tx_succeeded
    )

    select
    platform_name,
    collection_name,
    count(distinct tx_id) as transactions,
    count(distinct seller_address) as sellers,
    count(distinct buyer_address) as buyers,
    sum(amount_usd) as volume_usd,
    avg(amount_usd) as avg_amount_usd
    from t
    group by 1, 2
    qualify row_number() over (partition by platform_name order by volume_usd desc) <= 10
    order by platform_name, volume_usd desc




    QueryRunArchived: QueryRun has been archived