Per-(account, settlement-asset) P&L-bounds barrier.

Constructors

Methods

Constructors

  • Constructs an account-asset barrier from its parts.

    initialPnl seeds the account's running P&L; lowerBound/upperBound accept a Pnl, a DecimalInput, or null/undefined (at least one bound required, validated on build).

    Errors

    Throws AssetError when settlementAsset is empty or ParamError on an invalid value.

    Parameters

    • account_id:
          | string
          | number
          | bigint
          | AccountId
    • settlement_asset: string
    • initial_pnl:
          | string
          | number
          | bigint
          | Pnl
    • lower_bound:
          | undefined
          | null
          | string
          | number
          | bigint
          | Pnl
    • upper_bound:
          | undefined
          | null
          | string
          | number
          | bigint
          | Pnl

    Returns PnlBoundsAccountAssetBarrier

Methods

  • Returns void

  • Returns void