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.
Throws TypeError when an array contains a value of the wrong type.
Optionalaccount_blocks: readonly AccountBlock[]Optionalaccount_pnls: readonly AccountPnlOutcome[]Optionalaccount_adjustments: readonly AccountAdjustmentOutcome[]ReadonlyaccountThe already-applied account adjustments.
ReadonlyaccountThe account blocks; non-empty when a kill switch fired.
ReadonlyaccountAccount-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 a deep copy of this result.
Result of
engine.applyExecutionReport, also constructible for a custom policy's post-trade return.A non-empty
accountBlocksmeans a kill switch fired.accountPnlsandaccountAdjustmentsare already applied and must be consumed even when a block is present.