Analyzing stock prices with TimescaleDB time_bucket() function