You can use group by
date truncated to hour and then use analytical function as follows:
select timestamp_trunc(Timestamp , HOUR) as tst,
sum(sum(price)) over (order by timestamp_trunc(Timestamp , HOUR)) as price
from your_table t
group by tst
order by tst
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…