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.

    Parameters

    Returns AccountOutcomeEntry

Properties

asset: string

The asset this entry applies to.

averageEntryPrice: undefined | Price

The resulting 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 | PnlOutcomeAmount

The realized-P&L outcome, or undefined.

Methods

  • Returns void

  • Returns void