Query editor
/* NVDA/USDG across every venue on Robinhood Chain.Venues:Deepstate CLOB 0x6cf19308c22fc82ea620fa0b3e94948d20f27b96Ekubo v3 Core 0x00000000000014aa86c5d3c41765bb24e11bd701 (ve(3,3) "STONX")Uniswap v3 pool 0xd4eb21209c4d6093f80b5b84f5c45cc093ea14a3Uniswap v4 pools 0x3bb34a44... and 0x53e74184... (PoolManager 0x8366a39c...)Arcus (intent/RFQ) 0x006102b16a04c20306a28b652745d3973d7d24faNOTE 0x62ab521f... is NVDA/WETH, not this pair, and is excluded.EKUBO IS DECODED FROM RAW LOGS ON PURPOSE.Ekubo Core has no Swapped event -- swaps are written as a topic-less log0 tosave gas, 116 bytes:extension(20) | poolId(32) | delta0(int128) | delta1(int128)| sqrtRatio(12) | tick(int32) | liquidity(uint128)so poolId = substr(data,21,32), delta0 = substr(data,53,16) sign-extended.There is no decoded ekubo_v3_robinhood schema on Dune because Ekubo Core ismis-registered as uniswap_v4/PoolManager -- one of ~2,703 over-matchedaddresses on this chain. Offsets follow spellbook PR #9925(github.com/duneanalytics/spellbook/pull/9925) and the sharedekubo_compatible_liquidity macro.USDG (0x5fc5...) sorts below NVDA (0xd060...), so token0 = USDG everywhere andthe USDG leg is the notional. All measures are gross trade value. */WITH swaps AS (SELECT date_trunc('hour', block_time) AS hour, 'Uniswap v3' AS venue, dataFROM robinhood.logsWHERE block_date >= DATE '2026-08-15'AND contract_address = 0xd4eb21209c4d6093f80b5b84f5c45cc093ea14a3AND topic0 = 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67UNION ALLSELECT date_trunc('hour', block_time) AS hour, 'Uniswap v4' AS venue, dataFROM robinhood.logsWHERE block_date >= DATE '2026-08-15'AND contract_address = 0x8366a39cc670b4001a1121b8f6a443a643e40951AND topic0 = 0x40e9cecb9f5f1f1c5b9c97dec2917b7ee92e57ba5563708daca94dd84ad7112fAND topic1 IN (0x3bb34a44f1b2b5f32c034c38a53065a521a47b199700fa9bd19d60985ff24bf1,0x53e74184f024eb01ceb7bbde68866bff3cc3ddf378c78745eb52bdd9ad7bcd91)),amm AS (SELECThour,venue,sum(cast(CASE WHEN bytearray_substring(data, 1, 1) >= 0x80THEN bytearray_to_uint256(0x0000000000000000000000000000000100000000000000000000000000000000)- bytearray_to_uint256(bytearray_substring(data, 17, 16))ELSE bytearray_to_uint256(bytearray_substring(data, 17, 16))END AS double)) / 1e6 AS volume_usdg,count(*) AS tradesFROM swapsGROUP BY 1, 2),ekubo AS (SELECTdate_trunc('hour', block_time) AS hour,