Query editor
-- RM Internal: unified history of closed positions, newest firstSELECTrole, outcome, wallet, is_team,opened_at, closed_at, hours,CASE WHEN role = 'detonator' AND outcome = 'expired' AND received_usdc = 0 THEN 'auto (window ended)'WHEN role = 'survivor' AND outcome = 'crash' THEN 'auto (vault crashed)'ELSE 'user tx' END AS closed_by,deposited_usdc, received_usdc, pnl_usdc,window_start, window_end, window_minutes, wins_in_window,token_id,contractFROM query_8766977WHERE status = 'closed'ORDER BY closed_at DESC