Query editor
-- Notional Value Influenced (Resolution Oracle)-- Total trading volume of all downstream prediction markets resolved by Cournot, all-time.-- Source: https://interface.cournot.ai/cournot/dune/daily_market_volume_liquidity (LiveFetch)-- Same basis as 1.5: sums the daily volume series and excludes the current (incomplete) UTC day.WITH api AS (SELECT json_parse(http_get('https://interface.cournot.ai/cournot/dune/daily_market_volume_liquidity')) AS body),items AS (SELECT itemFROM apiCROSS JOIN UNNEST(CAST(json_extract(body, '$.data.items') AS array(json))) AS t(item)),daily AS (SELECT CAST(json_extract_scalar(item, '$.date') AS date) AS day,CAST(json_extract_scalar(item, '$.volume') AS double) AS volume_usdFROM itemsWHERE CAST(json_extract_scalar(item, '$.date') AS date) < current_date)SELECT SUM(volume_usd) AS notional_value_usd,COUNT(*) AS days_coveredFROM daily