Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/WITH addresses AS (SELECT DISTINCT(tx_from) AS addressesFROM dex.tradesWHERE blockchain = 'arbitrum'AND (token_bought_address = 0x7F465507f058e17Ad21623927a120ac05CA32741OR token_sold_address = 0x7F465507f058e17Ad21623927a120ac05CA32741)AND block_date >= NOW() - INTERVAL '90' dayGROUP BY 1UNIONSELECT DISTINCT(tx_to) AS addressesFROM dex.tradesWHERE blockchain = 'arbitrum'AND (token_bought_address = 0x7F465507f058e17Ad21623927a120ac05CA32741OR token_sold_address = 0x7F465507f058e17Ad21623927a120ac05CA32741)AND block_date >= NOW() - INTERVAL '90' dayGROUP BY 1)SELECT COUNT(DISTINCT(addresses)) AS addressesFROM addresses