HOUR | AREO_PRICE | SWAPS | |
---|---|---|---|
1 | 2023-12-30 00:00:00.000 | 0.05730318767 | 6 |
2 | 2023-11-28 00:00:00.000 | 0.02863247362 | 4 |
3 | 2024-09-05 18:00:00.000 | 0.5285188812 | 7 |
4 | 2024-04-02 23:00:00.000 | 1.398160883 | 7 |
5 | 2023-09-11 07:00:00.000 | 0.06248210376 | 17 |
6 | 2024-10-07 12:00:00.000 | 1.234909099 | 1 |
7 | 2023-12-09 17:00:00.000 | 0.04009029679 | 8 |
8 | 2024-03-23 03:00:00.000 | 0.7750302182 | 29 |
9 | 2024-04-01 12:00:00.000 | 1.447053122 | 3 |
10 | 2024-05-01 20:00:00.000 | 0.9986188914 | 15 |
11 | 2023-11-03 07:00:00.000 | 0.0227670834 | 1 |
12 | 2024-08-16 13:00:00.000 | 0.6357061388 | 2 |
13 | 2024-03-06 15:00:00.000 | 0.5146240279 | 77 |
14 | 2024-03-02 12:00:00.000 | 0.5145228704 | 12 |
15 | 2024-09-30 00:00:00.000 | 1.220619104 | 1 |
16 | 2023-12-29 12:00:00.000 | 0.05948904703 | 11 |
17 | 2023-10-12 20:00:00.000 | 0.02004846282 | 4 |
18 | 2024-08-28 19:00:00.000 | 0.6098230509 | 1 |
19 | 2023-11-18 17:00:00.000 | 0.03122012898 | 13 |
20 | 2024-03-08 04:00:00.000 | 0.3960795849 | 6 |
jackguyAREO 1
Updated 2025-01-29
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
›
⌄
SELECT
date_trunc('hour', block_timestamp) as hour,
median(AMOUNT_USDBC / AMOUNT_AERO) as areo_price,
count(*) as swaps
FROM (
SELECT
block_timestamp,
tx_hash,
sum(CASE when contract_address LIKE lower('0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA') then raw_amount / power(10, 6) else 0 end) as amount_usdbc,
sum(CASE when contract_address LIKE lower('0x940181a94A35A4569E4529A3CDfB74e38FD98631') then raw_amount / power(10, 18) else 0 end) as amount_aero
FROM base.core.fact_token_transfers
WHERE tx_hash in (
SELECT
tx_hash
FROM base.core.fact_transactions
where to_address LIKE lower('0xcF77a3Ba9A5CA399B7c97c74d54e5b1Beb874E43')
)
AND (
to_address LIKE '0x2223f9fe624f69da4d8256a7bcc9104fba7f8f75'
or from_address LIKE '0x2223f9fe624f69da4d8256a7bcc9104fba7f8f75'
)
GROUP BY 1,2
)
WHERE AMOUNT_USDBC > 0
AND AMOUNT_AERO > 0
GROUP BY 1
Last run: 2 months ago
...
8454
358KB
131s