Function intervalStart

Calculates the start time of the interval containing the given timestamp.

  • Parameters

    • ts: number

      The timestamp for which to find the interval start.

    • interval: CandleInterval

      The candle interval.

    Returns number

    The start time of the interval.