Query editor
-- BANs stands for Big Ass Numbers if you were wondering lmao...-- find total unique userswith get_unique_users as (select count(distinct user) as unique_usersfrom (selectmaker as userfrom polymarket_polygon.CTFExchange_evt_OrderFilledunionselecttaker as userfrom polymarket_polygon.CTFExchange_evt_OrderFilled))-- find all pools, get_total_pools as(select count(distinct conditionId) as total_poolsfrom query_2818960where is_token_created = 1), get_total_dispute as(select count(distinct conditionid) as total_disputefrom query_2824808where label = 'dispute'and is_traded = 1and is_token_created = 1), get_total_settle as(select count(distinct conditionid) as total_settlefrom query_2824808where label = 'settle'and is_traded = 1and is_token_created = 1), get_redisputes as(select count(distinct conditionId) as total_redisputesfrom query_2824808where dispute_count >= 2and is_traded = 1and is_token_created = 1), get_total_trade_matches as(selectcount(distinct evt_tx_hash) as total_trade_matchesfrom polymarket_polygon.CTFExchange_evt_OrdersMatched), get_total_volume as(select sum(volume) as total_volume -- the underlying volume calc sums both maker and taker and they are both balance which is a form of double countingfrom query_2828296where label = 'trading'), get_total_redemptions as(select sum(coalesce(redeem_inflow_to_user,0)) as total_redemptions -- the underlying volume calc sums both maker and taker and they are both balance which is a form of double counting