/*SELECT date_trunc("hour", block_timestamp) as hour, count(DISTINCT(tx_id)) / 60 as tx_done_div_60_min
FROM thorchain.swaps where block_timestamp >= dateadd(year, -1, getdate())
group BY 1 ORDER BY 2 DESC*/
--LIMIT 10000
SELECT
date_trunc("minute", block_timestamp) as time, date_trunc("day", block_timestamp) as date,
count(DISTINCT(tx_id))
FROM thorchain.swaps where block_timestamp >= dateadd(month, -3, getdate())
GROUP BY 1,2
ORDER BY 3
DESC