@openpit/engine
    Preparing search index...

    Class PostTradeResult

    Result of engine.applyExecutionReport, also constructible for a custom policy's post-trade return.

    A non-empty accountBlocks means a kill switch fired. accountPnls and accountAdjustments are already applied and must be consumed even when a block is present.

    Index
    • Constructs a post-trade result from optional block, PnL, and adjustment outcome lists.

      All three default to empty. Used by a custom policy's applyExecutionReport return path.

      Errors

      Throws TypeError when an array contains a value of the wrong type.

      Parameters

      Returns PostTradeResult

    accountAdjustments: AccountAdjustmentOutcome[]

    The already-applied account adjustments.

    accountBlocks: AccountBlock[]

    The account blocks; non-empty when a kill switch fired.

    accountPnls: AccountPnlOutcome[]

    Account-level PnL outcomes reported by policies.

    A computed outcome with a nonzero delta changed the ledger; a zero delta recomputed it unchanged. A halt-reason outcome has no authoritative PnL value and must not be interpreted as zero. SpotFunds emits a halt reason only when the current report transitions the account accumulator to halted; later reports omit the unchanged halt. Position force-sets do not re-arm it, and unchanged halted position PnL is likewise omitted from accountAdjustments.

    • Returns void

    • Returns void