Documentation
    Preparing search index...

    Function getInitializableTickIndex

    • Get the initializable tick index. If the tick index is already initializable, it is returned as is.

      Parameters

      • tick_index - A i32 integer representing the tick integer
      • tick_spacing - A i32 integer representing the tick spacing
      • round_up - A boolean value indicating if the supplied tick index should be rounded up. None will round to the nearest.

      Returns

      • A i32 representing the initializable tick index (rounded per round_up or nearest).

      Parameters

      • tick_index: number
      • tick_spacing: number
      • Optionalround_up: boolean | null

      Returns number