Query editor
WITH all_activity AS (SELECTaccount,size_delta_usd,block_dateFROM gmx_v2.position_increaseWHERE blockchain = 'arbitrum'AND block_date >= DATE '2024-01-01'UNION ALLSELECTaccount,size_delta_usd,block_dateFROM gmx_v2.position_decreaseWHERE blockchain = 'arbitrum'AND block_date >= DATE '2024-01-01')SELECTSUM(size_delta_usd) AS total_volume_usd,COUNT(*) AS total_events,COUNT(DISTINCT account) AS unique_traders,MIN(block_date) AS first_date,MAX(block_date) AS last_dateFROM all_activity