Query editor
--- query_4898824: #sonieum-newsalewith response as (SELECT http_get('https://api.coingecko.com/api/v3/simple/price?ids=astar,ethereum&vs_currencies=usd') AS pricesFROM (SELECT 1 LIMIT 1)),token_prices AS (SELECT'ETH' AS currency, cast(JSON_EXTRACT_SCALAR(prices, '$.ethereum.usd') as double) AS token_priceFROM responseUNION ALLSELECT'WETH' AS currency, cast(JSON_EXTRACT_SCALAR(prices, '$.ethereum.usd') as double) AS token_priceFROM responseUNION ALLSELECT 'ASTR' AS currency, cast(JSON_EXTRACT_SCALAR(prices, '$.astar.usd') as double) AS token_priceFROM responseUNION ALLSELECT 'USDC' AS currency, 1 as token_priceFROM (SELECT 1 LIMIT 1))selectevt_block_date as date,count(distinct buyer) as unique_buyers,sum(quantityBought) as num_sales,round(sum(quantityBought * totalPricePaid * t.token_price), 2) as volume,count(distinct assetContract) as num_collections,s.currencyfrom query_4898824 as sleft join token_prices ton s.currency = t.currencygroup by evt_block_date, s.currencyorder by evt_block_date desc