by solidasparagus · 7y ago · 0 comments
I wouldn't call it pay-for-what-you-use unless the pricing varies with your actual usage instead of changing when you change plans.
Regardless, with Timescale Cloud, if you get a machine, you pay the price for that machine for as long as you use it. So I guess to avoid the confusion, we can call this just paying for the machine :)
My first ever test query was to generate minutely OHLC+volume from time,price,quantity trades. It was pleasantly easy to do:
select time_bucket('1 minutes', time) as minutely,
max(price) as high,
min(price) as low,
first(price, time) as open,
last(price, time) as close,
sum(quantity) as volume
from trades
group by minutely
order by minutely;
https://gist.github.com/danielytics/e9b69933586e00732646e016...