Query editor
selectdate_trunc('month', block_date) as date,case when maker in (0x1d22397edfc4edf622d692050635bfc1febf1404,0xaa04f1162899554fb66d06d1d60c68d46dce4d6a,0xa3f14cb81e6edb7b1249755dd20e2bfb23597fd7) then 'MM1'when maker in (0x0000006daea1723962647b7e189d311d757fb793,0x00000000ae347930bd1e7b0f35588b92280f9e75,0xaf0b0000f0210d0f421f0009c72406703b50506b,0x6be36e53242a2224942826afa2d24960419f84ee) then 'MM2'when maker in (0x56178a0d5f301baf6cf3e1cd53d9863437345bf9,0xa69babef1ca67a37ffaf7a485dfff3382056e78c) then 'MM3'else cast(maker as varchar) end as maker,sum(volume_usd) as volume,max(tx_hash) as tx_examplefrom zeroex.api_fillswhere type in ('OtcOrderFilled', 'RfqOrderFilled')and blockchain = 'ethereum'and affiliate_address is null and tx_to = 0x881d40237659c251811cec9c364ef91dc08d300cgroup by 1 , 2