Mrfti2023-08-25 01:09 AM
    Updated 2025-01-04
    with price_tbl AS (
    SELECT
    hour :: date as date,
    AVG(price) as price
    from
    solana.price.ez_prices_hourly
    where
    symbol = 'SOL'
    GROUP BY
    1
    ),
    tbl2 AS (
    SELECT
    Marketplace as "marketplace",
    block_timestamp,
    tx_id,
    purchaser,
    seller,
    sales_amount * price as "Price in sol"
    FROM
    solana.nft.fact_nft_sales a
    JOIN price_tbl b ON a.BLOCK_TIMESTAMP :: date = b.date
    where
    succeeded = 'true'
    )
    SELECT
    date_trunc('day', block_timestamp) as "Date",
    CASE
    WHEN "marketplace" IN ('magic eden v1', 'magic eden v2', 'Magic Eden') then 'Magic Eden'
    WHEN "marketplace" IN ('coral cube', 'Coral Cube') then 'CoralCube'
    WHEN "marketplace" IN ('opensea') then 'OpenSea'
    WHEN "marketplace" IN ('solanart') then 'Solanart'
    WHEN "marketplace" IN ('hadeswap') then 'Hadeswap'
    WHEN "marketplace" IN ('tensorswap') then 'Tensor'
    ELSE 'Others'
    END as "Marketplace",
    Last run: 2 months agoAuto-refreshes every 12 hours
    Date
    Marketplace
    Daily Sales
    Daily Buyers
    Daily Sellers
    Daily volume
    1
    2021-08-05 00:00:00.000Solanart27201613533.629358813
    2
    2021-08-06 00:00:00.000Solanart129805270546.772908912
    3
    2021-08-07 00:00:00.000Solanart312152121140647.516561619
    4
    2021-08-08 00:00:00.000Solanart393173131185235.356582204
    5
    2021-08-09 00:00:00.000Solanart268156150168814.017671941
    6
    2021-08-10 00:00:00.000Solanart194116101118141.511033835
    7
    2021-08-11 00:00:00.000Solanart19711792101362.430476467
    8
    2021-08-12 00:00:00.000Solanart20710997108275.468422685
    9
    2021-08-13 00:00:00.000Solanart1699410197504.702683113
    10
    2021-08-14 00:00:00.000Solanart776379349563290.626563528
    11
    2021-08-15 00:00:00.000Solanart3441122514404178980.52626851
    12
    2021-08-16 00:00:00.000Solanart18007819322581581.97917523
    13
    2021-08-17 00:00:00.000Solanart19078837061529452.01386619
    14
    2021-08-18 00:00:00.000Solanart3512109310441167693.87691401
    15
    2021-08-19 00:00:00.000Solanart20297948371455632.39986803
    16
    2021-08-20 00:00:00.000Solanart22438179991453415.11247814
    17
    2021-08-21 00:00:00.000Solanart16606809711496900.34305064
    18
    2021-08-22 00:00:00.000Solanart14425727821120417.28446457
    19
    2021-08-23 00:00:00.000Solanart175477510432155601.86736189
    20
    2021-08-24 00:00:00.000Solanart4238132620146414590.27211175
    ...
    6396
    418KB
    34s