Financial impact group: realized P&L and fee.

Constructors

Accessors

Methods

Constructors

  • Constructs a financial-impact group from a P&L and a fee.

    Each argument accepts a value object or a DecimalInput.

    Errors

    Throws ParamError on an invalid value.

    Parameters

    • pnl:
          | string
          | number
          | bigint
          | Pnl
    • fee:
          | string
          | number
          | bigint
          | Fee

    Returns FinancialImpact

Accessors

  • get fee(): undefined | Fee
  • The fee, or undefined when omitted from a plain object.

    Returns undefined | Fee

  • set fee(value): void
  • Sets the fee.

    Errors

    Throws ParamError on an invalid value.

    Parameters

    • value:
          | string
          | number
          | bigint
          | Fee

    Returns void

  • get pnl(): undefined | Pnl
  • The realized P&L, or undefined when omitted from a plain object.

    Returns undefined | Pnl

  • set pnl(value): void
  • Sets the realized P&L.

    Errors

    Throws ParamError on an invalid value.

    Parameters

    • value:
          | string
          | number
          | bigint
          | Pnl

    Returns void

Methods

  • Returns void

  • Returns a fresh FinancialImpact holding the same P&L and fee.

    Returns FinancialImpact

  • Returns void