@openpit/engine
    Preparing search index...

    Class AccountOutcomeEntry

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

    Index
    • 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

    asset: string

    The asset this entry applies to.

    averageEntryPrice: Price | undefined

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

    balance: OutcomeAmount | undefined

    The balance-bucket outcome, or undefined.

    held: OutcomeAmount | undefined

    The held-bucket outcome, or undefined.

    incoming: OutcomeAmount | undefined

    The incoming-bucket outcome, or undefined.

    realizedPnl: PnlOutcome | undefined

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

    • Returns void