0xtollexsquid stats
Updated 2024-04-30
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
›
⌄
-- forked from 2024-04-27 11:07 PM @ https://flipsidecrypto.xyz/edit/queries/ecf49cbd-543b-4c99-9256-0ad7e89d5d22
with price as(
SELECT
HOUR::date as date,
token_address,
AVG(price) as avg_price
FROM crosschain.price.fact_hourly_token_prices
GROUP BY 1,2
)
SELECT
date_trunc(day, block_timestamp):: date as date,
sum(amount * avg_price) as Bridge_Volume,
avg(amount * avg_price) as Avg_Volume,
count(DISTINCT sender) as No_of_users,
count(DISTINCT tx_hash) as No_of_bridges,
count(DISTINCT a.TOKEN_ADDRESS) as No_of_tokens
FROM axelar.defi.ez_bridge_squid a JOIN price p on a.block_timestamp::date = p.date and a.token_address = p.token_address
WHERE block_timestamp::date BETWEEN '2024-01-01' AND '2024-03-31'
GROUP BY 1
QueryRunArchived: QueryRun has been archived