Query editor
--- query_4898824: #sonieum-newsale--- query_4899028: #sonieum-newlisting--- query_4917742: #sonieum-newauction--- query_4917741: #sonieum-newbid--- query_4917931: #sonieum-auctionclosedwith 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) -- Ensure only one HTTP request is made),token_prices AS (-- SELECT'ETH' AS currency, cast(JSON_EXTRACT_SCALAR(prices, '$.ethereum.usd') as double) AS token_price-- FROM responseSELECT'ETH' AS currency,token_pricefrom (select price * 1.0 AS token_pricefrom prices.usd_latest where symbol = 'WETH'and blockchain = 'base')UNION ALL-- SELECT'WETH' AS currency, cast(JSON_EXTRACT_SCALAR(prices, '$.ethereum.usd') as double) AS token_price-- FROM responseSELECT'WETH' AS currency,token_pricefrom (select price * 1.0 AS token_pricefrom prices.usd_latest where symbol = 'WETH'and blockchain = 'base')UNION ALLSELECT 'ASTR' AS currency, cast(JSON_EXTRACT_SCALAR(prices, '$.astar.usd') as double) AS token_priceFROM responseUNION ALLSELECT 'USDC' AS currency, 1FROM (SELECT 1 LIMIT 1)),auctions as (selectevt_block_date as date,count(distinct auctionCreator) as auctioneers,count(distinct auctionId) as auctions,count(distinct assetContract) as collections,currencyfrom query_4917742group by evt_block_date, currency),bids as (selectevt_block_date as date,count(distinct bidder) as bidders,count(distinct auctionId) as auctions,count(distinct evt_tx_hash) as bids,count(distinct assetContract) as collections,currencyfrom query_4917741group by evt_block_date, currency),wins as (