Afonso_DiazTop Buyers
    Updated 2025-02-15
    with

    pricet as (
    select
    hour::date as date,
    avg(price) as token_price_usd
    from
    flow.price.ez_prices_hourly
    where
    symbol = 'FLOW'
    group by 1
    ),

    txns as (
    select
    tx_id,
    block_timestamp,
    seller,
    buyer,
    price,
    currency,
    case
    when currency ilike '%.DapperUtilityCoin' then 'USDC'
    when currency ilike '%.FlowToken' then 'FLOW'
    when currency ilike '%.FUSD' then 'FUSD'
    when currency ilike '%.FlowUtilityToken' then 'FLOW'
    when currency ilike '%.REVV' then 'REVV'
    when currency ilike '%.FiatToken' then 'USDC'
    when currency ilike '%.USDCFlow' then 'USDC.e'
    end as symbol,
    iff(symbol = 'FLOW', token_price_usd, 1) * price as price_usd,
    nft_collection
    from
    flow.nft.ez_nft_sales
    left join
    pricet on block_timestamp::date = date
    QueryRunArchived: QueryRun has been archived