Class AccountAdjustmentBalanceOperation

Balance-scoped adjustment operation: asset and average entry price.

Constructors

Accessors

  • get asset(): undefined | string
  • The asset, or undefined.

    Returns undefined | string

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

    Errors

    Throws AssetError when the asset string is empty.

    Parameters

    • value: undefined | null | string

    Returns void

  • get averageEntryPrice(): undefined | Price
  • The average entry price, or undefined.

    Returns undefined | Price

  • set averageEntryPrice(value): void
  • Sets the average entry price (accepts a value object or DecimalInput).

    Errors

    Throws ParamError on an invalid value.

    Parameters

    • value:
          | undefined
          | null
          | string
          | number
          | bigint
          | Price

    Returns void

  • get realizedPnl(): undefined | Pnl
  • The absolute realized P&L, or undefined.

    Returns undefined | Pnl

  • set realizedPnl(value): void
  • Sets the absolute realized P&L (accepts a value object or DecimalInput).

    Errors

    Throws ParamError on an invalid value.

    Parameters

    • value:
          | undefined
          | null
          | string
          | number
          | bigint
          | Pnl

    Returns void

Methods

  • Returns void

  • Returns void