:::note

    To use , one column needs to be designated as timestamp. Find out more in the section.

    :::

    Where is the unit of time by which you wish to aggregate your results, and n is the number of time chunks that will be summarized together.

    The time range of each group sampled by time is an absolute value, in other words, sampling by one day is a 24 hour range which is not bound to actual calendar dates.

    Considering the following example which samples from a table over the last 24 hours:

    Assume the following table

    The following will return the number of trades per hour:

    The following will return the trade volume in 30 minute intervals