@openpit/engine
    Preparing search index...

    Class PnlBoundsBrokerBarrier

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

    Index
    • 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: string | number | bigint | Pnl | null | undefined
      • upper_bound: string | number | bigint | Pnl | null | undefined

      Returns PnlBoundsBrokerBarrier

    • Returns void

    • Returns void