Query editor
WITH positions AS (SELECT * FROM query_3821872)SELECTtoken,side,SUM((downPayment / 1e18) * leverage) as sizeFROM positionsWHERE status = 'OPEN' AND token IS NOT NULLGROUP BY token, side
Query editor
1WITH positions AS (SELECT * FROM query_3821872)23SELECT4token,5side,6SUM((downPayment / 1e18) * leverage) as size7FROM positions8WHERE status = 'OPEN' AND token IS NOT NULL9GROUP BY token, side