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: null | OutcomeAmountOptionalheld: null | OutcomeAmountOptionalincoming: null | OutcomeAmountOptionalrealized_pnl: null | PnlOutcomeOptionalaverage_entry_price: null | PriceReadonlyassetThe 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.
The operation that first cannot calculate PnL contains a halt reason; later operations omit the field until an adjustment force-sets PnL.
Returns a deep copy of this outcome entry.
Per-asset adjustment outcome across the balance, held, and incoming buckets.