StangFASTsale - part 1
    Updated 2024-01-26
    with

    avax AS
    (
    SELECT
    date_trunc( 'day' , a.hour ) AS dt
    , avg( a.price ) AS pr
    , a.symbol AS sb
    , a.decimals AS de
    FROM
    avalanche.price.ez_hourly_token_prices a
    WHERE
    a.token_address = '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7'
    GROUP BY 1 , 3 , 4
    ORDER BY 1 DESC
    )
    ,
    --------------------------------------------------- HYPERSPACE ------------------------------------------------------
    market_sale_1 AS
    (
    SELECT
    b.block_timestamp AS dt
    , b.tx_hash AS tx
    , cast( b.decoded_log:"taker" AS string ) AS bu
    , cast( b.decoded_log:"maker" AS string ) AS se
    , cast( b.decoded_log:"erc721TokenId" AS string ) AS id
    , ( ( cast( b.decoded_log:"erc20TokenAmount" AS integer ) / power( 10 , c.de ) ) * c.pr ) AS am
    FROM
    avalanche.nft.ez_nft_transfers a
    LEFT JOIN
    avalanche.core.ez_decoded_event_logs b
    ON a.tx_hash = b.tx_hash
    LEFT JOIN
    avax c
    ON a.block_timestamp::date = c.dt
    WHERE
    Last run: about 1 year ago
    date
    buyers
    sellers
    token IDs
    sale counts
    sale volume
    transaction fees
    platform fees
    creator fees
    total buyers
    total sellers
    total token IDs
    total sale counts
    total sale volume
    total transaction fees
    total platform fees
    total creator fees
    1
    2024-01-16 00:00:00.000141150233366292144.13665376788.3699472725707.7872120021426.94680300120852377358066834109827.171293731749.26545747379234.43770763919808.60942691
    2
    2024-01-20 00:00:00.0008711310516190191.26594604835.2697777961517.858391096379.46459777425842858414576634722924.013884581959.53553049390349.61196438122587.402991095
    3
    2024-01-23 00:00:00.0006292979855701.54610195424.7197250441045.801351307261.45033782728643160443781374939117.771306692064.0876908594571.54077843323642.885194608
    4
    2024-01-17 00:00:00.000127116153296202703.47463075165.1094987554042.0288267611010.5072066922122493373369794312530.645924481814.37495622883276.46653440120819.1166336
    5
    2024-01-25 00:00:00.00053516110544822.67099193118.816223921896.453419839224.1133549630013299459283995060637.915023212114.02051778496978.7206630124244.680165753
    6
    2024-01-11 00:00:00.0004815028251389788476.946735762391.86032534815195.0150770013798.753769259771125177028931489795.49799567846.61195679328685.004943267171.251235815
    7
    2024-01-13 00:00:00.000203241318678345283.479302906164.2285460856491.1798845581622.7949711414111611246141602175627.777252131150.29590772141961.02442168510490.256105421
    8
    2024-01-16 00:00:00.00021221589.4281288380.623322083640.9646424968.1929284993332383822956.31429497614.1361706591.657584922118.331516984
    9
    2024-01-15 00:00:00.0001111772.521750.139964489419.80825099995747.8213227461.75740567147.84015683617.944793867
    10
    2024-01-12 00:00:00.0002222773.17730.648352873219.927253.985452124262613908.6043630139.430006985358.46918461471.693836923
    11
    2024-01-24 00:00:00.0001111417.09850.111518999510.6948333330131313137906.3661964362.395655659203.35806282724.598253826
    12
    2024-01-14 00:00:00.0001111729.6750.245350719614.59353.6483751111729.6750.245350719614.59353.648375
    13
    2024-01-14 00:00:00.00022222060.23736250.296364653752.90143752.918788884975.2995727461.61744118128.03190683617.944793867
    14
    2024-01-17 00:00:00.0001111594.0422468750.308955215.3103671873.0620734383433393923550.35654185114.4451258606.96795211121.393590422
    15
    2024-01-14 00:00:00.00033541458316351181590.49859739384.79422728222697.5141693635674.37854234117462025304457953357218.275849521535.09013500364658.53859104816164.634647762
    16
    2024-01-24 00:00:00.0001111440.0160.19889341978.800322.2000822221169.6910.444244139323.393825.848455
    17
    2024-01-22 00:00:00.00013912011722786114.74837239447.8999093491715.326607448428.83165186228023068434080394883416.225204732039.36796580693525.73942712623381.434856781
    18
    2024-01-18 00:00:00.000137109138256154367.43221996354.3718737082823.643997462705.91099936623492602387172354466898.078144441868.74682993586100.11053186321525.027632966
    19
    2024-01-11 00:00:00.00033331527.5972888580.829129239539.3710641467.87421282966662915.0622102461.32107652775.13046933615.026093867
    20
    2024-01-12 00:00:00.000231245373589340548.799953546139.4554048426784.8395938681696.20989846712081370214334821830344.29794922986.06736163535469.8445371278867.461134282
    35
    6KB
    141s