Query editor
-- Robinhood branch restored (2026-09-04): prices come from the single bulk call GET /rhj/prices.-- 2026-10-14: xStocks branch reads dune.bitgetwallet.result_xstocks_official_onchain_aum (daily MV of-- query_8377829) instead of calling Backed's API inline. Robinhood branch reads-- dune.bitgetwallet.result_robinhood_onchain_aum (weekly MV of query_8379428, Wednesdays 00:00 UTC), so this-- query makes no Robinhood API calls. This query is itself materialized weekly (Wednesdays 01:00 UTC) as-- dune.bitgetwallet.result_tstocks_market_cap_summary (read by query_8945613 and query_8375943).-- 2026-10-15: token exclusion list (keep in sync with query_8370084 and query_8436076):-- Ondo SHVon (short-term Treasury ETF): single holder address since launch, mint/burn only, no transfers.WITH excluded_tokens AS (SELECT * FROM (VALUES('Ondo', 'SHVon'),('bStocks', 'MVLLB') -- abnormal low-liquidity DEX price (~$47,400); exclude from AUM only) AS t(project, token_symbol)),detail_raw AS (-- Ondo: issuer-team Registry/price + chain-onchain Supply.SELECTproject,chain,token_symbol,contract_address,total_supply AS displayed_supply,onchain_market_cap_usd,valuation_quality AS valuation_status,CAST(updated_at AS timestamp) AS source_observed_at,'base_query_onchain_or_issuer_source_time' AS source_freshness_scope,'ondo_official_registry_and_price' AS methodologyFROM query_8370076WHERE project = 'Ondo'UNION ALL-- bStocks: authoritative onchain Supply valued with Dune DEX prices.SELECTproject,chain,token_symbol,contract_address,total_supply AS displayed_supply,onchain_market_cap_usd,valuation_quality AS valuation_status,CAST(updated_at AS timestamp) AS source_observed_at,'base_query_onchain_or_dex_source_time' AS source_freshness_scope,'bstocks_dex_implied_price' AS methodologyFROM query_8370076WHERE project = 'bStocks'UNION ALL-- xStocks: Backed official per-chain supply and official prices (daily MV).SELECTproject,chain,product_symbol AS token_symbol,native_contract_address AS contract_address,displayed_circulating_supply AS displayed_supply,onchain_market_cap_usd,aum_status AS valuation_status,CAST(source_observed_at AS timestamp) AS source_observed_at,'official_supply_and_price_observation' AS source_freshness_scope,