Query editor
-- Tokenized equities onchain: Robinhood Chain DEX activity, last 30 full days plus today. Official contracts only (query_9149675). Same shape as the Solana DEX base plus chain.with allow as (select token_address, ticker, issuer from query_9149675),t as (select d.block_date, d.project, d.tx_from as trader_id, d.amount_usd,coalesce(a1.issuer, a2.issuer) as issuer, coalesce(a1.ticker, a2.ticker) as tickerfrom dex.trades dleft join allow a1 on a1.token_address = d.token_bought_addressleft join allow a2 on a2.token_address = d.token_sold_addresswhere d.blockchain = 'robinhood'and d.block_date >= current_date - interval '30' dayand d.block_time >= cast(current_date - interval '30' day as timestamp)and d.block_month >= date_trunc('month', current_date - interval '30' day)and d.amount_usd is not nulland (a1.issuer is not null or a2.issuer is not null)),b as (select *, case when amount_usd < 100 then '1: under $100'when amount_usd < 1000 then '2: $100 to $1k'when amount_usd < 10000 then '3: $1k to $10k'when amount_usd < 100000 then '4: $10k to $100k'else '5: over $100k' end as size_bucketfrom t)selectcase grouping(block_date, issuer, ticker, project, size_bucket)when 7 then 'issuer_day'when 3 then 'ticker_day'when 5 then 'project_day'when 19 then 'ticker_30d'when 22 then 'bucket_30d'when 23 then 'issuer_30d'end as lvl,block_date, issuer, ticker, project, size_bucket,count(*) as trades,sum(amount_usd) as volume_usd,count(distinct trader_id) as traders,approx_percentile(amount_usd, 0.5) as median_trade_usd,'Robinhood Chain' as chainfrom bgroup by grouping sets ((block_date, issuer),(block_date, issuer, ticker),(block_date, issuer, project),(issuer, ticker),(issuer, size_bucket),(issuer))