A (delta, absolute) position-size pair describing an applied change.

Constructors

Properties

Methods

Constructors

  • Constructs an outcome amount from a delta and an absolute value.

    Each argument accepts a PositionSize value object or a DecimalInput.

    Errors

    Throws ParamError on an invalid value.

    Parameters

    • delta:
          | string
          | number
          | bigint
          | PositionSize
    • absolute:
          | string
          | number
          | bigint
          | PositionSize

    Returns OutcomeAmount

Properties

absolute: PositionSize

The resulting absolute value.

The signed change applied.

Methods

  • Returns void

  • Returns a fresh copy of this outcome amount.

    Returns OutcomeAmount

  • Returns void