LTirrelllfg_network_terra
Updated 2022-07-07
999
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 luna_price as (
select
date_trunc('hour', block_timestamp) as datetime,
avg(price_usd) as hourly_price
from
terra.oracle_prices
where
symbol = 'LUNA'
and datetime > '2022-01-01'
group by
datetime
),
ust_price as (
select
date_trunc('hour', block_timestamp) as datetime,
avg(price_usd) as hourly_price
from
terra.oracle_prices
where
symbol = 'UST'
and datetime > '2022-01-01'
group by
datetime
),
layer_one as (
select
BLOCK_TIMESTAMP,
date_trunc('hour', block_timestamp) as datetime,
TX_ID,
SENDER,
RECIPIENT,
AMOUNT,
AMOUNT_USD,
CURRENCY,
CONTRACT_ADDRESS,
CONTRACT_LABEL,
Run a query to Download Data