Query editor
with mux_data as(select sum(CAST(json_query(args,'lax $.amount') AS DECIMAL)/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL)/1e18) as volume,traderfrom mux_arbitrum.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18),traderfrom mux_arbitrum.LiquidityPoolHop1_evt_OpenPosition where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18),traderfrom mux_arbitrum.LiquidityPoolHop1_evt_Liquidate where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL)/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL)/1e18) as volume,traderfrom mux_avalanche_c.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18),traderfrom mux_avalanche_c.LiquidityPoolHop1_evt_OpenPosition where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18),traderfrom mux_avalanche_c.LiquidityPoolHop1_evt_Liquidate where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18),traderfrom mux_bnb.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18),traderfrom mux_bnb.LiquidityPoolHop1_evt_OpenPosition where evt_block_time > (now()-interval '{{days}}' day) group by 2UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18