Build-time account spot-funds P&L-bounds barrier with an initial P&L seed.

Constructors

Methods

Constructors

  • Constructs a build-time account spot-funds P&L-bounds barrier.

    initialPnl seeds live accumulated P&L at policy construction time.

    Errors

    Throws AssetError/ParamError on invalid input.

    Parameters

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

    Returns SpotFundsPnlBoundsAccountBarrier

Methods

  • Returns void

  • Returns void