Query editor
-- All-time headline: notional volume, trades, traders. USD markets, both-sides convention.WITH excluded_wallets(wallet) AS (VALUES(0xd752f6622acf5927494201542f352550e31c6baa),(0x7836d709e750f6a2d6ff9362457028e8cd901eb3),(0xae7bfff784eeee7812d6527b72c77a7ed773ed9d),(0x8a611aee71b6448a6f99b6001d1234d020f7d546)),abs_usdc AS (SELECT evt_tx_hash, "from" AS sender, "to" AS recipientFROM erc20_abstract.evt_TransferWHERE contract_address = 0x84a71ccd554cc1b02749b35d22f684cc8ec987e1),usdc_abstract_txs AS (SELECT DISTINCT evt_tx_hash FROM abs_usdc),amm_trades AS (SELECT CAST(shares AS DOUBLE)/1e6 AS notional_volume, user AS traderFROM myriad_abstract.predictionmarketv3_evt_marketactiontxWHERE action IN (0,1) AND evt_tx_hash IN (SELECT evt_tx_hash FROM usdc_abstract_txs)AND user NOT IN (SELECT wallet FROM excluded_wallets)UNION ALLSELECT CAST(shares AS DOUBLE)/1e6, userFROM myriad_abstract.predictionmarketv4_evt_marketactiontxWHERE action IN (0,1) AND evt_tx_hash IN (SELECT evt_tx_hash FROM usdc_abstract_txs)AND user NOT IN (SELECT wallet FROM excluded_wallets)UNION ALLSELECT CAST(shares AS DOUBLE)/1e6, userFROM myriad_abstract.predictionmarketv3_3_evt_marketactiontxWHERE action IN (0,1) AND evt_tx_hash IN (SELECT evt_tx_hash FROM usdc_abstract_txs)AND user NOT IN (SELECT wallet FROM excluded_wallets)UNION ALLSELECT CAST(shares AS DOUBLE)/1e6, userFROM myriad_abstract.predictionmarketv3_3_points_evt_marketactiontxWHERE action IN (0,1) AND evt_tx_hash IN (SELECT evt_tx_hash FROM usdc_abstract_txs)AND user NOT IN (SELECT wallet FROM excluded_wallets)UNION ALLSELECT CASE WHEN chain='linea' THEN CAST(shares AS DOUBLE)/1e6WHEN chain='bnb' THEN CAST(shares AS DOUBLE)/1e18 END, userFROM myriad_multichain.predictionmarketv3_4_evt_marketactiontxWHERE action IN (0,1) AND chain IN ('bnb','linea')AND user NOT IN (SELECT wallet FROM excluded_wallets)),sys_all AS (SELECT addr FROM (VALUES(0x0000000000000000000000000000000000000000),(0xa0b6f8ef8edb64f395018d1933f2273ce9f0f16a),(0x6413734f92248d4b29ae35883290bd93212654dc),(0xc1bb36bb0ba236603b95544e809f2ab1893bbc0c),(0xd96f26703ddbf7d1cb6858640eca34cf1893d53a),(0x9f124ce59d8de0274574949400640a2677067acc)) t(addr)UNION SELECT DISTINCT contract_address FROM myriad_markets_bnb.negriskadapter_evt_positionssplitUNION SELECT DISTINCT contract_address FROM myriad_markets_bnb.negriskadapter_evt_positionsmerged),redeem_txs AS (SELECT evt_tx_hash FROM myriad_markets_bnb.conditionaltokens_evt_positionredeemedUNION SELECT evt_tx_hash FROM myriad_markets_bnb.conditionaltokens_evt_voidedpositionredeemed),