@openpit/engine
    Preparing search index...

    Class AdjustmentAmount

    A tagged balance/position adjustment amount: delta or absolute.

    Index
    asAbsolute: PositionSize | undefined

    Returns the absolute size, or undefined when this is a delta.

    asDelta: PositionSize | undefined

    Returns the delta size, or undefined when this is absolute.

    isAbsolute: boolean

    Returns true when this amount is an absolute target.

    isDelta: boolean

    Returns true when this amount is a signed difference.

    • Returns void

    • Returns void

    • Builds an absolute-target adjustment amount.

      Accepts a PositionSize value object or a DecimalInput.

      Errors

      Throws ParamError on an invalid value.

      Parameters

      Returns AdjustmentAmount

    • Builds a signed-difference (delta) adjustment amount.

      Accepts a PositionSize value object or a DecimalInput.

      Errors

      Throws ParamError on an invalid value.

      Parameters

      Returns AdjustmentAmount