Query editor
-- RM Internal: user actions (wallet, day, month) — position opens + user-signed withdrawals, team excludedSELECTwallet_addr AS wallet,CAST(ts AS date) AS d,CAST(date_trunc('month', ts) AS date) AS mFROM query_8766977CROSS JOIN UNNEST(ARRAY[opened_at,CASE WHEN (role = 'survivor' AND outcome = 'take profit')OR (role = 'detonator' AND received_usdc > 0) THEN closed_at END]) AS t(ts)WHERE NOT is_team AND ts IS NOT NULL