StangFAST002 - number
    Updated 2024-01-06
    with

    tab1 AS
    (
    SELECT
    date_trunc( '{{period}}' , a.block_timestamp ) AS "date"
    , count( distinct a.buyer_address ) AS "buyers"
    , count( distinct a.seller_address ) AS "sellers"
    , count( distinct a.tx_hash ) AS "sale count"
    , sum( a.price_usd ) AS "sale volume"
    -- , a.project_name AS "collection"
    -- , a.nft_address AS "nft address"
    , 'Opensea' AS "market"
    FROM
    avalanche.nft.ez_nft_sales a
    WHERE
    "date" >= '2023-01-01'
    AND "date" <= dateadd( '{{period}}' , -1 , current_date )
    AND a.platform_address in (
    '0x00000000006c3852cbef3e08e8df289169ede581'
    , '0x00000000000001ad428e4906ae43d8f9852d0dd6'
    , '0x00000000000000adc04c56bf30ac9d3c0aaf14dc'
    )
    GROUP BY 1
    ORDER BY 1 DESC
    )
    ,
    tab2 AS
    (
    SELECT
    date_trunc( '{{period}}' , a.block_timestamp ) AS "date"
    , count( distinct a.buyer_address ) AS "buyers"
    , count( distinct a.seller_address ) AS "sellers"
    , count( distinct a.tx_hash ) AS "sale count"
    , sum( a.price_usd ) AS "sale volume"
    -- , a.project_name AS "collection"
    QueryRunArchived: QueryRun has been archived