Afonso_DiazOvertime
    Updated 9 days ago
    with

    main as (
    select
    tx_hash,
    block_timestamp,
    buyer_address,
    seller_address,
    price,
    price_usd,
    nft_address,
    token_id
    from near.nft.ez_nft_sales
    where
    platform_name = 'TradePort'
    ),

    new_buyers as (
    select
    date_trunc('{{ period }}', min_date) as date,
    count(distinct buyer_address) as new_buyer
    from (
    select
    buyer_address,
    min(block_timestamp) as min_date
    from
    main
    group by 1
    )
    group by 1
    ),

    overtime as (
    select
    date_trunc('{{ period }}', block_timestamp) as date,
    count(distinct tx_hash) as transactions,
    Last run: 9 days ago
    DATE
    TRANSACTIONS
    BUYERS
    SELLERS
    VOLUME_NEAR
    AVERAGE_VOLUME_NEAR
    MEDIAN_VOLUME_NEAR
    VOLUME_USD
    AVERAGE_VOLUME_USD
    MEDIAN_VOLUME_USD
    NEW_BUYERS
    RETURNING_BUYERS
    CUMULATIVE_TRANSACTIONS
    CUMULATIVE_VOLUME_NEAR
    CUMULATIVE_VOLUME_USD
    1
    2022-09-01 00:00:00.00019118114.86.0421052636419.96620843122.10348465421.41055808611019114.8419.966208431
    2
    2022-10-01 00:00:00.000332119471.32314.282515152121498.51245122845.40946821936.22888700217452586.1231918.478659659
    3
    2022-11-01 00:00:00.000412615705.4817.20682926861559.48288517638.03616793118.722444342242931291.6033477.961544835
    4
    2022-12-01 00:00:00.0007723271130.7314.6848051954.31708.69938420322.1909010947.31537619813101702422.3335186.660929038
    5
    2023-01-01 00:00:00.000603026785.1613.0865.91649.75680409427.49594673510.9056705592462303207.4936836.417733131
    6
    2023-02-01 00:00:00.00010245431323.2512.9730392167.253323.93439313232.5875920918.14835632730153324530.74310160.352126263
    7
    2023-03-01 00:00:00.000392801862199.1609989985.61010458934310.82957688110.9970142275.81071449664167246729.90399899814471.181703144
    8
    2023-04-01 00:00:00.00013859641371.29099.936890585.252817.08369549620.41364996710.24828178742178628101.19489899817288.26539864
    9
    2023-05-01 00:00:00.000823632886.623310.8124792684.51557.44548046118.9932375677.8114868723139448987.81819899818845.710879101
    10
    2023-06-01 00:00:00.000532823562.6106220910.6152947564.8786.51282744114.8398646696.77136612815139979550.42882108819632.223706542
    11
    2023-07-01 00:00:00.0007139251778.911325.05508873214.992476.87237898834.88552646523.7419546152712106811329.34012108822109.09608553
    12
    2023-08-01 00:00:00.000893830972.31310.92486516931218.79455218113.6943208114.009267251820115712301.65312108823327.890637712
    13
    2023-09-01 00:00:00.000422421621.1114.7883333337.5688.36788541516.3897115588.2065253211113119912922.76312108824016.258523127
    14
    2023-10-01 00:00:00.000411720477.43511.6447560985547.14435240113.3449842055.066492271611124013400.19812108824563.402875528
    15
    2023-11-01 00:00:00.000843530830.0589.88164285731415.18169738516.8474011595.4501463611619132414230.25612108825978.584572913
    16
    2023-12-01 00:00:00.000512101976862.659113.403631055319329.29630496837.7525318468.4148106617031183621092.91522108845307.880877881
    17
    2024-01-01 00:00:00.00014648471762.31899999912.0706780824.555667.0768151538.81559462414.0796947652721198222855.23422108750974.957693031
    18
    2024-02-01 00:00:00.00018497918841.411448.0511489133.6628822.685626134156.64503057711.4719197668413216631696.64562108779797.643319164
    19
    2024-03-01 00:00:00.00016480802771.09416.8969146344.32517842.19130228108.79384940431.2947585175822233034467.73962108797639.834621445
    20
    2024-04-01 00:00:00.00010083796124127.8511514.0950904280.325536.17717617825.3335091031.76460218135425333838595.590772087123176.011797623
    32
    5KB
    5s