Updated 2 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'
    )

    select
    count(distinct tx_hash) as transactions,
    count(distinct buyer_address) as buyers,
    count(distinct seller_address) as sellers,
    count(distinct nft_address) as total_collections,
    count(distinct token_id) as total_tokens,
    sum(price) as total_volume_near,
    avg(price) as average_volume_near,
    median(price) as median_volume_near,
    sum(price_usd) as total_volume_usd,
    avg(price_usd) as average_volume_usd,
    median(price_usd) as median_volume_usd,
    max(price) as maximum_price,
    max(price_usd) as maximum_price_usd
    from
    main

    Last run: 1 day ago
    TRANSACTIONS
    BUYERS
    SELLERS
    TOTAL_COLLECTIONS
    TOTAL_TOKENS
    TOTAL_VOLUME_NEAR
    AVERAGE_VOLUME_NEAR
    MEDIAN_VOLUME_NEAR
    TOTAL_VOLUME_USD
    AVERAGE_VOLUME_USD
    MEDIAN_VOLUME_USD
    MAXIMUM_PRICE
    MAXIMUM_PRICE_USD
    1
    123954013321299983589054.9337360877.184746571.2366229.04234650129.5465141064.83001776
    1
    101B
    2s