Constructs an outcome entry for asset.
The bucket amounts default to absent.
Throws AssetError when asset is empty or TypeError when an
optional outcome is not the expected wrapper type.
Optionalbalance: OutcomeAmount | nullOptionalheld: OutcomeAmount | nullOptionalincoming: OutcomeAmount | nullOptionalrealized_pnl: PnlOutcome | nullOptionalaverage_entry_price: Price | nullReadonlyassetThe asset this entry applies to.
ReadonlyaverageThe resulting account-currency average entry price, or undefined.
ReadonlybalanceThe balance-bucket outcome, or undefined.
ReadonlyheldThe held-bucket outcome, or undefined.
ReadonlyincomingThe incoming-bucket outcome, or undefined.
ReadonlyrealizedThe account-currency realized-P&L outcome, or undefined.
Reservations, cancels, settlement legs, opening, same-direction, and zero-quantity fills without a non-zero fee omit it, as do non-PnL adjustments. A realizing fill reports an authoritative result even when its exact contribution is zero. A non-zero fee reports the underlying asset even if the account never held it. The operation that first fails reports a halt reason; later operations omit the field until an asset-scoped adjustment force-sets PnL.
Returns a deep copy of this outcome entry.
Per-asset adjustment outcome across the balance, held, and incoming buckets.