Query editor
/* Dune query number - 5106189 */with weth as (selectdate_trunc('hour', minute) as hr,avg(price) as pricefromprices.usdwherecontract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2and minute >= cast('2022-07-15 00:00' as timestamp)group bydate_trunc('hour', minute)),token as (selectdate_trunc('hour', minute) as hr,contract_address,avg(price) as pricefromprices.usdwherecontract_address = 0xD33526068D116cE69F19A9ee46F0bd304F21A51fand minute >= cast('2022-07-15 00:00' as timestamp)group bydate_trunc('hour', minute),contract_address)selecttoken.hr,token.contract_address as token_contract_address,'RPL' as token_name,token.price as token_price_usd,weth.price as weth_price_usd,token.price / weth.price as token_price_ethfromtokeninner join weth ontoken.hr = weth.hr