KaskoazulBot activity - Bot distributions
Updated 2024-05-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_address as trader,
pool_name,
blockchain,
concat_ws (' to ', from_asset, to_asset) as swap_pair,
from_amount_usd,
--token_0_amount_usd,
to_amount_usd
from
thorchain.defi.fact_swaps
where
block_timestamp >= CURRENT_DATE - {{last_days}} - 1
and block_timestamp < CURRENT_DATE - 1
and swap_pair is not NULL
),
daily_count as (
select
block_timestamp :: date as fecha,
trader,
count (distinct tx_id) as txs
from
swaps
group by
1,
2
order by
3 desc
),
max_number as (
select
trader,
max (txs) as max_txs
from
QueryRunArchived: QueryRun has been archived