Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/select sum(cast(amount as double)/1000000000000000000) Volume, sum(cast(amount as double)/1000000000000000000)*0.04 Feefrom (select *from nexter_finance_polygon.MATICPrediction_evt_PredictUpJOIN nexter_finance_polygon.NativeSDKV3_call_predict ON call_tx_hash = evt_tx_hashwhere _provider = from_hex('0x7B99A2cAAA8180113b97b23f20574c65a4E8ed58') andsender not in (from_hex('0x00139d3bdb0d3289d4d09b56e430b500e7f01369'),from_hex('0x55bd94a277a269184e87818a6449a38ec99079df'),from_hex('0xbca9ef58c1bee72c83fa6bd3a04a1590c06bf03a'),from_hex('0x59cb11ea143c5c85d33fa9a9d67b160f5e3f2fa8'))UNION ALLselect *from nexter_finance_polygon.MATICPrediction_evt_PredictDownJOIN nexter_finance_polygon.NativeSDKV3_call_predict ON call_tx_hash = evt_tx_hashwhere _provider = from_hex('0x7B99A2cAAA8180113b97b23f20574c65a4E8ed58') andsender not in (from_hex('0x00139d3bdb0d3289d4d09b56e430b500e7f01369'),from_hex('0x55bd94a277a269184e87818a6449a38ec99079df'),from_hex('0xbca9ef58c1bee72c83fa6bd3a04a1590c06bf03a'),from_hex('0x59cb11ea143c5c85d33fa9a9d67b160f5e3f2fa8'))) as ds