maybeyonasthorstop_swaps
Updated 2021-11-27
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with swaps as (
select
block_timestamp,
tx_id,
from_asset,
to_asset,
from_amount_usd as usd_vol,
case
when from_asset = 'THOR.RUNE' then 'sell'
else 'buy' end as swap
from thorchain.swaps
),
before_stop as (
select
date(block_timestamp) as date,
swap,
count(tx_id) as txs,
sum(usd_vol) as usd_vol
from swaps
where
block_timestamp >= '2021-11-02' and block_timestamp <= '2021-11-12'
group by 1,2
),
after_stop as (
select
date(block_timestamp) as date,
swap,
count(tx_id) as txs,
sum(usd_vol) as usd_vol
from swaps
where
block_timestamp >= '2021-11-17' and block_timestamp <= '2021-11-27'
group by 1,2
)
Run a query to Download Data