Query editor
-- part of a query repo-- query name: For sale-- query link: https://dune.com/queries/3132829-- Inventory and value of Fabrica properties currently listed for sale-- Uses uploaded CSV data from Fabrica's marketplace orderbook-- Includes both minted tokens and premintsSELECTCOUNT(DISTINCT token_id) AS "Inventory",SUM(CAST(price_usd AS DOUBLE)) AS "Total Listing Value (USD)"FROM dune.fabrica.dataset_fabrica_marketplace_ordersWHERE status = 'active'AND side = 'sell'AND order_type = 'listing'