omer93CAPPYS 2nd sales
    Updated 2025-04-03
    WITH info AS (
    SELECT
    tx_id,
    COUNT(token_id) AS nft_id,
    buyer_address AS buyer,
    seller_address AS seller,
    nft_address AS collection,
    amount AS attribute_value
    FROM
    sei.nft.ez_nft_sales
    WHERE
    --block_timestamp > '2024-08-01'
    nft_address = 'sei1cujl8ujhc36lp7sr98x30u0aeqtjlj68kll5rqqr9dke5xvn2ltquzhysl'
    GROUP BY
    tx_id, buyer, seller, collection, attribute_value
    ),
    info2 AS (
    SELECT
    *,
    attribute_value AS prices,
    prices AS sei_price,
    (prices * nft_id) AS sei_volume
    FROM
    info
    )
    SELECT
    COUNT(DISTINCT tx_id) AS sales,
    SUM(nft_id) AS distinct_nft_sold,
    COUNT(DISTINCT buyer) AS buyers,
    COUNT(DISTINCT seller) AS sellers,
    SUM(sei_volume) AS sei_volume,
    AVG(sei_price) AS avg_nft_price,
    MAX(sei_price) AS max_nft_price
    FROM
    info2

    Last run: 14 days ago
    SALES
    DISTINCT_NFT_SOLD
    BUYERS
    SELLERS
    SEI_VOLUME
    AVG_NFT_PRICE
    MAX_NFT_PRICE
    1
    706510267284937601497852.323425147.5908862225000
    1
    58B
    7s