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 volumefrom mux_arbitrum.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_arbitrum.LiquidityPoolHop1_evt_OpenPosition where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_arbitrum.LiquidityPoolHop1_evt_Liquidate where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL)/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL)/1e18) as volumefrom mux_avalanche_c.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_avalanche_c.LiquidityPoolHop1_evt_OpenPosition where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_avalanche_c.LiquidityPoolHop1_evt_Liquidate where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_bnb.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_bnb.LiquidityPoolHop1_evt_OpenPosition where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_bnb.LiquidityPoolHop1_evt_Liquidate where evt_block_time > (now()-interval '7' day)UNION ALLselect sum(CAST(json_query(args,'lax $.amount') AS DECIMAL(38, 0))/1e18 *CAST(json_query(args,'lax $.assetPrice') AS DECIMAL(38, 0))/1e18)from mux_fantom.LiquidityPoolHop1_evt_ClosePosition where evt_block_time > (now()-interval '7' day)