StangFAST01 - overview big number
    Updated 2023-08-07
    --- magic eden v2
    --- tensorswap

    with

    sol_price AS
    (
    SELECT
    date_trunc( 'day' , a.recorded_hour ) AS day
    , avg( a.close ) AS price
    , a.symbol AS token
    FROM
    solana.core.fact_token_prices_hourly a
    WHERE
    a.symbol = 'SOL'
    GROUP BY 1 , 3
    ORDER BY 1 DESC
    )
    ,
    final AS
    (
    SELECT
    date_trunc( '{{period}}' , a.block_timestamp ) AS "date"

    , count( DISTINCT a.purchaser ) AS "buyers"
    , count( DISTINCT a.seller ) AS "seller"
    , count( DISTINCT a.tx_id ) AS "transaction"
    , sum( a.sales_amount * c.price ) AS "usd volume"

    , sum( "buyers" ) over ( ORDER BY "date" ASC ) AS "total buyers"
    , sum( "seller" ) over ( ORDER BY "date" ASC ) AS "total seller"
    , sum( "transaction" ) over ( ORDER BY "date" ASC ) AS "total transaction"
    , sum( "usd volume" ) over ( ORDER BY "date" ASC ) AS "total usd volume"

    FROM
    solana.core.fact_nft_sales a
    Run a query to Download Data