Query editor
-- Polymarket Transactions — V1 (polymarket_polygon.*) + V2 (polymarket_v2_polygon.*)---- V2 cutover: 2026-04-28. V1 went silent that day; explicit date guards keep-- V1 and V2 from double-counting the boundary.---- V2 multiplexes both CTF and NegRisk onto the same `ctfexchange_evt_orderfilled`-- table; we split by contract_address so the original column names-- (`ctf_txns`, `negrisk_txns`) stay meaningful end-to-end.-- V2 CTF Exchange: 0xE111180000d2663C0091e4f400237545B87B996B-- V2 NegRisk Exchange: 0xe2222d279d744050d28e00520010520000310F59WITH bounds AS (SELECT DATE '2024-01-01' AS start_date, CURRENT_DATE AS end_date),cutover AS (SELECT DATE '2026-04-28' AS d),ctf AS (SELECT date, COUNT(DISTINCT tx_hash) AS ctf_txnsFROM (-- V1 CTFSELECTDATE_TRUNC('{{time_frame_txns}}', t.evt_block_time) AS date,t.evt_tx_hash AS tx_hashFROM polymarket_polygon.CTFExchange_evt_OrderFilled tCROSS JOIN bounds bWHERE t.evt_block_time >= b.start_dateAND t.evt_block_time < b.end_dateAND t.evt_block_date <= (SELECT d FROM cutover)UNION ALL-- V2 CTFSELECTDATE_TRUNC('{{time_frame_txns}}', t.evt_block_time) AS date,t.evt_tx_hash AS tx_hashFROM polymarket_v2_polygon.ctfexchange_evt_orderfilled tCROSS JOIN bounds bWHERE t.evt_block_time >= b.start_dateAND t.evt_block_time < b.end_dateAND t.evt_block_date >= (SELECT d FROM cutover)AND t.contract_address = 0xE111180000d2663C0091e4f400237545B87B996B)GROUP BY 1),negrisk AS (SELECT date, COUNT(DISTINCT tx_hash) AS negrisk_txnsFROM (-- V1 NegRiskSELECTDATE_TRUNC('{{time_frame_txns}}', t.evt_block_time) AS date,t.evt_tx_hash AS tx_hashFROM polymarket_polygon.NegRiskCtfExchange_evt_OrderFilled tCROSS JOIN bounds bWHERE t.evt_block_time >= b.start_dateAND t.evt_block_time < b.end_dateAND t.evt_block_date <= (SELECT d FROM cutover)UNION ALL