winnie-fsSpot ETFs Issuers Over Time copy
Updated 2024-08-01
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 alitaslimi / Spot ETFs Issuers Over Time @ https://flipsidecrypto.xyz/alitaslimi/q/hrD2n1zs14JQ/spot-etfs-issuers-over-time
with
-------------------- BTC Price --------------------
prices as (
select
price
from
ethereum.price.ez_prices_hourly
where
symbol = 'WETH'
qualify
hour = last_value(hour) over (order by hour)
),
-------------------- Dates --------------------
dates as (
select
date_day as date
from
crosschain.core.dim_dates
where
date_day < current_date
),
-------------------- Addresses --------------------
addresses as (
select
ft.value:ADDRESS as address,
ft.value:TICKER as ticker,
ft.value:ISSUER as issuer
from (
select
livequery.live.udf_api (
'https://flipsidecrypto.xyz/api/v1/queries/f47ee6c9-d326-4ec3-a13d-1b344ad96810/data/latest'
):data as data
) lq,
table(flatten(input => lq.data)) ft
QueryRunArchived: QueryRun has been archived