A bar spans count calendar units, opening at local midnight on the first day of the period in timezone.

timezone on the entry pins the code to one exchange's calendar; leaving it off lets the bucket follow whatever zone the caller resolves in, which is the chart's configured zone.

interface CalendarBucketing {
    count?: number;
    mode: "calendar";
    timezone?: string;
    unit: CalendarUnit;
}

Properties

count?: number

Periods per bar (default 1): { unit: 'month', count: 6 } is a half-year.

mode: "calendar"
timezone?: string