Query editor
-- METATOOLS-- token 0x7ae075546e8042dC263FA0eb6519ce0a04EABB93--pair: 0x83b33b4dB2776F119b2DDD902419254775c8DB15--deployer:0x81FBD7a1F4Ad93853B73437F909b54DD9E68f62D-- block: 17927124-- timestamp: Aug-16-2023 11:34:47 AM +UTCWITHwethUSDPrices AS (SELECTminute,price AS wethUSDFROMprices.usdWHEREblockchain = 'ethereum'/* WETHAddress */AND contract_address = 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2/* UNICHADeploymentTimestamp */AND minute >= CAST('2023-08-09 00:00:00.000 UTC' AS TIMESTAMP)ORDER BYminute DESC),tradesWithLiquidity AS (SELECT/*To change the time resolution, adjust the line below, for valid values check the docs:https://dune.com/docs/query/DuneSQL-reference/Functions-and-operators/datetime/?h=date+trunc#truncation-function*/date_trunc('hour', blockTime) AS truncatedBlockTime,priceWETH * wethUSD AS priceUSD,*FROM/* METATOOLS Trades + Liquidity */query_2987755JOIN wethUSDPrices ON date_trunc('minute', blockTime) = wethUSDPrices.minuteORDER BYblockTime DESC),allTimeHigh AS (SELECTblockTime AS allTimeHighTimestamp,priceUSD AS allTimeHighUSD,txHash AS allTimeHighTxHashFROMtradesWithLiquidityORDER BYpriceUSD DESCLIMIT1),rankedTrades AS (SELECTtruncatedBlockTime,priceWETH,priceUSD,ROW_NUMBER() OVER (PARTITION BYtruncatedBlockTimeORDER BY