Query editor
-- This a base query for computing token imbalances of the CoW Protocol contract---- It is based on query 4021257 and aggregates the transfers from that query into imbalances per token---- Parameters:-- {{start_time}} - the timestamp for which the analysis should start (inclusively)-- {{end_time}} - the timestamp for which the analysis should end (exclusively)-- {{blockchain}} - network to run the analysis onselectblock_time,tx_hash,token_address,sum( -- noqa: PRScasewhen sender = 0x9008D19f58AAbD9eD0D60971565AA8510560ab41 and receiver = 0x9008D19f58AAbD9eD0D60971565AA8510560ab41 then cast(0 as int256)when receiver = 0x9008D19f58AAbD9eD0D60971565AA8510560ab41 then cast(amount as int256)else -cast(amount as int256)end) as amountfrom "query_4021257(blockchain='{{blockchain}}',start_time='{{start_time}}',end_time='{{end_time}}')"where tx_hash != 0xf06378e10b27ccc35de3c8c2ba53fc6da2a5c837d9be5b10a584ab24dfa8a710group by block_time, tx_hash, token_address