Query editor
SELECTDATE(call_block_time) as trade_date,SUM(CASEWHEN account_inputVaultMint = 'So11111111111111111111111111111111111111112' THEN amount / 1e9WHEN account_outputVaultMint = 'So11111111111111111111111111111111111111112' THEN otherAmountThreshold / 1e9ELSE 0END) AS SOL_volume,SUM(CASEWHEN account_inputVaultMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN amount / 1e6WHEN account_outputVaultMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN otherAmountThreshold / 1e6ELSE 0END) AS USDC_volume,CASEWHEN SUM(CASEWHEN account_inputVaultMint = 'So11111111111111111111111111111111111111112' THEN amount / 1e9WHEN account_outputVaultMint = 'So11111111111111111111111111111111111111112' THEN otherAmountThreshold / 1e9ELSE 0END) = 0 THEN NULLELSE SUM(CASEWHEN account_inputVaultMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN amount / 1e6WHEN account_outputVaultMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN otherAmountThreshold / 1e6ELSE 0END) /SUM(CASEWHEN account_inputVaultMint = 'So11111111111111111111111111111111111111112' THEN amount / 1e9WHEN account_outputVaultMint = 'So11111111111111111111111111111111111111112' THEN otherAmountThreshold / 1e9ELSE 0END)END AS SOL_priceFROMraydium_clmm_solana.amm_v3_call_swapV2WHEREaccount_poolState = '2QdhepnKRTLjjSqPL1PtKNwqrUkoLee5Gqs8bvZhRdMv'AND call_block_time >= CURRENT_DATE - INTERVAL '100' dayGROUP BYDATE(call_block_time)ORDER BYtrade_date DESC