flyingfish0 - Combined Volume
Updated 2025-04-16
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
›
⌄
-- forked from 0 - Combined @ https://flipsidecrypto.xyz/studio/queries/0c8fb82b-252c-4df7-a252-2e8d61ec1984
with get_data as (
-- 1 - Meteora Volume
select
livequery.live.udf_api('https://flipsidecrypto.xyz/api/v1/queries/832194a8-c480-4924-badd-1f9a7ae47d00/data/latest'):data as response
union all
-- 2 - Orca Volume
select
livequery.live.udf_api('https://flipsidecrypto.xyz/api/v1/queries/62cdce36-37d6-49ed-9aac-77c9d5d3df71/data/latest'):data as response
union all
-- 3 - Raydium CLMM Volume
select
livequery.live.udf_api('https://flipsidecrypto.xyz/api/v1/queries/23c2d554-b63d-4508-8ed5-d51ce5f0ef86/data/latest'):data as response
union all
-- 4 - Raydium DLMM Volume
select
livequery.live.udf_api('https://flipsidecrypto.xyz/api/v1/queries/1982171d-e84e-4739-8661-1dfa974fbf4d/data/latest'):data as response
)
, pools_details as (
select
--block_timestamp
-- , index
-- , event_type
iff(event_type = 'initialize', 0, 1) as account_index
, decoded_instruction:accounts[3 + account_index]:pubkey as pool_address
, decoded_instruction:accounts[7 + account_index]:pubkey as token_x
QueryRunArchived: QueryRun has been archived