Per-asset adjustment outcome across the balance, held, and incoming buckets.

Constructors

  • Constructs an outcome entry for asset.

    The bucket amounts default to absent.

    Errors

    Throws AssetError when asset is empty or TypeError when an optional outcome is not the expected wrapper type.

    Parameters

    Returns AccountOutcomeEntry

Properties

asset: string

The asset this entry applies to.

averageEntryPrice: undefined | Price

The resulting account-currency average entry price, or undefined.

balance: undefined | OutcomeAmount

The balance-bucket outcome, or undefined.

held: undefined | OutcomeAmount

The held-bucket outcome, or undefined.

incoming: undefined | OutcomeAmount

The incoming-bucket outcome, or undefined.

realizedPnl: undefined | PnlOutcome

The 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.

Methods

  • Returns void

  • Returns void