0xHaM-dMonthly
    Updated 2025-01-04
    with priceTb as (
    SELECT
    HOUR::date as p_date,
    avg(price) as avg_price
    FROM aptos.price.ez_prices_hourly
    WHERE SYMBOL = 'APT'
    GROUP by 1
    )
    SELECT
    date_trunc('month', BLOCK_TIMESTAMP)::date as date,
    count(*) as n_sales,
    count(DISTINCT BUYER_ADDRESS) as n_buyers,
    count(DISTINCT SELLER_ADDRESS) as n_sellers,
    count(DISTINCT TOKENID) as n_tokens,
    sum(PLATFORM_FEE) as PLATFORM_FEEs,
    sum(PLATFORM_FEE*avg_price) as PLATFORM_FEE_USD,
    sum(CREATOR_FEE) as CREATOR_FEEs,
    sum(CREATOR_FEE*avg_price) as CREATOR_FEE_USD,
    avg(TOTAL_PRICE) as AVG_PRICE,
    sum(TOTAL_PRICE) as sales_vol_apt,
    avg(TOTAL_PRICE*avg_price) as AVG_PRICE_USD,
    sum(TOTAL_PRICE*avg_price) as sales_vol_usd,
    sum(n_sales) over (order by date) as cum_n_sales,
    sum(sales_vol_apt) over (order by date) as cum_sales_vol_apt,
    sum(sales_vol_usd) over (order by date) as cum_sales_vol_usd,
    sum(PLATFORM_FEEs) over (order by date) as cum_PLATFORM_FEE,
    sum(CREATOR_FEEs) over (order by date) as cum_CREATOR_FEE
    FROM aptos.nft.ez_nft_sales
    JOIN priceTb on date_trunc('d', BLOCK_TIMESTAMP)::date = p_date
    GROUP by 1
    ORDER by 1 DESC


    Last run: about 1 month ago
    DATE
    N_SALES
    N_BUYERS
    N_SELLERS
    N_TOKENS
    PLATFORM_FEES
    PLATFORM_FEE_USD
    CREATOR_FEES
    CREATOR_FEE_USD
    AVG_PRICE
    SALES_VOL_APT
    AVG_PRICE_USD
    SALES_VOL_USD
    CUM_N_SALES
    CUM_SALES_VOL_APT
    CUM_SALES_VOL_USD
    CUM_PLATFORM_FEE
    CUM_CREATOR_FEE
    1
    2025-03-01 00:00:00.0004618142910611897114.70285161684.996777786200.721160921176.7740200770.73228609093381.697167654.36069653420137.69659376524083002971589.5232484525545042.1428428143775.2874046287926.04599812
    2
    2025-02-01 00:00:00.0004800114110802895419.15283962536.512105863574.033740113467.2094123193.18962225815310.186836519.29131111592598.29335385724036822968207.826080825524904.446249143660.5845530187725.3248372
    3
    2025-01-01 00:00:00.0006633200816483977550.406014554895.300765852865.97405127737.7866338963.37338208622375.6433766129.98842236198913.20551068123988822952897.639244325432306.1528952143241.4317134187151.29109709
    4
    2024-12-01 00:00:00.000137804023315976441079.6443166511810.0377155581856.1859375219531.8027800283.32593591545831.3969102935.794957585493254.51552759423922492930521.9958676925233392.9473845142691.0256988686285.31704589
    5
    2024-11-01 00:00:00.000283694285507511839334.214465143758.370784807453.644603075062.2031773720.453247225112858.170528885.04816934143211.51601873323784692884690.598957424740138.4318569141611.3813822184429.13110837
    6
    2024-10-01 00:00:00.00021172567742538736551.488987675204.400070212646.963337086012.4105822080.953623709320190.121172478.936170745189196.6070126723501002871832.4284285224596926.9158382141277.1669170783975.4865053
    7
    2024-09-01 00:00:00.00017795640751487234415.028544852782.093292202591.964522623982.4556397871.03588171518433.515115476.909325531122951.44781853523289282851642.3072560524407730.3088255140725.677929483328.52316822
    8
    2024-08-01 00:00:00.00016080491741728303706.660891644404.8301592991088.964021526869.1244621561.8268752829376.1545008611.460864472184290.70070879423111332833208.7921405824284778.861007140310.6493845582736.5586456
    9
    2024-07-01 00:00:00.000170014993486712044967.076045636415.919666671074.240255277212.073688292.04136549434705.2547617813.615613033231479.0371749722950532803832.6376397224100488.1602982139603.9884929181647.59462408
    10
    2024-06-01 00:00:00.0003191766957548239252038.6414988216417.3368083961242.931320569918.1598061151.0885572834743.482707038.499468874271277.54804280922780522769127.3828779423869009.1231232138636.9124472880573.35436881
    11
    2024-05-01 00:00:00.000108665836513262562601677.6494184914755.5211106681001.858272268906.8084962920.466368378750677.919876614.095294493445015.17609063422461352734383.9001709123597731.5750804136598.2709484679330.42304825
    12
    2024-04-01 00:00:00.0001075182167216106477203715.3518968942072.3639070182452.9251349828116.1978429850.901153765296890.2505261310.0327772441078704.1437130621374702683705.980294323152716.3989898134920.6215299778328.56477599
    13
    2024-03-01 00:00:00.000231929156897134542959965949.6821340390176.6627470543012.7544377445769.2634275060.4897946423113597.581590467.4003428491716354.1167014620299522586815.7297681722074012.2552767131205.2696330875875.63964101
    14
    2024-02-01 00:00:00.00017130510190189797689343851.8578596536404.1122816932300.0467365921727.7506702920.439890370275355.419859084.179522479715973.09822423617980232473218.1481777120357658.1385752125255.5874990572862.88520327
    15
    2024-01-01 00:00:00.00020160574328652671093107506.4984936669414.3297398263315.0637637230570.6454703380.6148709293123961.053706225.6772841011144568.8612242616267182397862.7283186319641685.040351121403.729639470562.83846668
    16
    2023-12-01 00:00:00.000204948379422449317008710104.4313510989198.3274227214445.5091901439227.872403041.152767202236257.3326108610.0372237272057108.9283290514251132273901.6746124118497116.1791267113897.2311457467247.77470296
    17
    2023-11-01 00:00:00.000564881319313329265661292.068569699386.802904731065.87951477754.2776596460.512446652728947.086515083.710120964209577.31298939712201652037644.3420015516440007.2507977103792.7997946562802.26551282
    18
    2023-10-01 00:00:00.0001897271753827472393691666.016919999492.2324120281478.201032348568.2764737080.196119992137209.257738371.12710378213842.01887939611636772008697.2554864716230429.9378083102500.7312249661736.38599812
    19
    2023-09-01 00:00:00.000461701330816634308931475.291697347879.645652867769.014096564095.5165295360.504852891523309.058002382.689852558124190.4926014829739501971487.997748116016587.9189289100834.7143049760258.18496578
    20
    2023-08-01 00:00:00.000662181978226804436771513.391889779524.909560144781.773436384933.3047033910.368044698124371.183817342.34027268154968.1763425389277801948178.9397457215892397.426327499359.4226076359489.17086922
    30
    7KB
    4s