Query editor
select date, first_value(jmx_price) over (partition by jmx_count order by date asc) as jmx_price from(select a.date as date, jmx_price, count(jmx_price) over (order by a.date asc) as jmx_count from(select date_trunc('day',minute) as date from prices.usdwhere symbol = 'ETH' and minute >= cast('2025-02-05 14:54' as timestamp)group by date_trunc('day',minute)) as aleft join(select date_trunc('day',block_time) as date, avg(case when token_sold_symbol = 'JMX' then token_bought_amount/token_sold_amount else token_sold_amount/token_bought_amount end) as jmx_price from aerodrome.tradeswhere token_pair = 'JMX-USDC'group by date_trunc('day',block_time)) as b on a.date = b.date) as aorder by a.date asc