Constructs an outcome entry for asset.
The bucket amounts default to absent.
Throws AssetError when asset is empty.
Optionalbalance: null | OutcomeAmountOptionalheld: null | OutcomeAmountOptionalincoming: null | OutcomeAmountOptionalrealized_pnl: null | PnlOutcomeAmountOptionalaverage_entry_price: null | PriceReadonlyassetThe asset this entry applies to.
ReadonlyaverageThe resulting average entry price, or undefined.
ReadonlybalanceThe balance-bucket outcome, or undefined.
ReadonlyheldThe held-bucket outcome, or undefined.
ReadonlyincomingThe incoming-bucket outcome, or undefined.
ReadonlyrealizedThe realized-P&L outcome, or undefined.
Returns a deep copy of this outcome entry.
Per-asset adjustment outcome across the balance, held, and incoming buckets.