Query editor
with myriad as (with trades as (SELECT evt_block_time, evt_tx_hash, contract_address, action, marketId, user, value, 'abstract' as chain FROM myriad_abstract.predictionmarketv3_evt_marketactiontxWHERE action IN (0,1)UNION ALLSELECT evt_block_time, evt_tx_hash, contract_address, action, marketId, user, value, chain FROM myriad_multichain.predictionmarketv3_4_evt_marketactiontxWHERE action IN (0,1)UNION ALLSELECT evt_block_time, evt_tx_hash, contract_address, action, marketId, user, value, 'abstract' as chain FROM myriad_abstract.predictionmarketv3_3_points_evt_marketactiontxWHERE action IN (0,1)UNION ALLSELECT evt_block_time, evt_tx_hash, contract_address, action, marketId, user, value, 'abstract' as chain FROM myriad_abstract.predictionmarketv4_evt_marketactiontxWHERE action IN (0,1)),markets as (SELECT * FROM query_5971135)SELECTdate_trunc('day', evt_block_time) as dt,COUNT(DISTINCT user) as unique_user_cnt,COUNT(DISTINCT evt_tx_hash) as unique_tx_cntFROM trades tRIGHT JOIN markets m ON t.contract_address = m.contract_address AND t.marketId = m.marketIdWHEREevt_block_time >= date '2025-12-15'GROUP BY 1),limitless as (with amm as (WITH markets as (SELECTfixedProductMarketMaker AS market_address, collateralToken AS collateralFROM limitless_base.FixedProductMarketMakerFactory_evt_FixedProductMarketMakerCreationUNION ALLSELECTfixedProductMarketMaker AS market_address, collateralToken AS collateralFROM limitless_exchange_prod_hanson_v0_1_base.FixedProductMarketMakerFactory_evt_FixedProductMarketMakerCreation)SELECTDATE_TRUNC('day', block_time) as dt,tx_hash as tx_hash,SUBSTR(topic1, 13, 20) as userFROM base.logs bINNER JOIN markets m ON b.contract_address = m.market_addressWHERE topic0 IN (0x4f62630f51608fc8a7603a9391a5101e58bd7c276139366fc107dc3b67c3dcf8, 0xadcf2a240ed9300d681d9a3f5382b6c1beed1b7e46643e0c7b42cbe6e2d766b4))SELECTdt,COUNT(DISTINCT user) as unique_user_cnt,COUNT(DISTINCT tx_hash) as unique_tx_cntFROM (SELECT DATE_TRUNC('day', evt_block_time) as dt,evt_tx_hash as tx_hash,maker as userFROM limitless_base.ctfexchange_evt_orderfilled -- single-outcome markets makers