How a bar's length reads to a human: a count, and the unit it counts.

M is months, so a quarter reads as 3 and a year as 12, keeping the token grammar's rule that lower-case m is minutes and upper-case M is a month. tick counts trades. other is a bucket with neither a clock length nor a trade count, which today means volume, and is where a later count-driven mode can land without silently changing what an existing unit means.

interface IntervalParts {
    multiplier: number;
    unit: "s" | "M" | "h" | "m" | "D" | "W" | "tick" | "other";
}

Properties

Properties

multiplier: number
unit: "s" | "M" | "h" | "m" | "D" | "W" | "tick" | "other"