Broker-wide P&L-bounds barrier (at least one bound required).

Constructors

Methods

Constructors

  • Constructs a broker barrier from a settlement asset and bounds.

    lowerBound and upperBound each accept a Pnl value object, a DecimalInput, or null/undefined. At least one bound must be set; the core validates this on build.

    Errors

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

    Parameters

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

    Returns PnlBoundsBrokerBarrier

Methods

  • Returns void

  • Returns void