Table of Contents

Class PositionEvent<T>.Updated

Namespace
Virtufin.Base.Events.Position
Assembly
Virtufin.Base.dll

Quantity or avg-entry changed by a fill or transfer.

public sealed record PositionEvent<T>.Updated : PositionEvent<T>, IPositionEvent<T>, IEvent<T>, IEquatable<IEvent<T>>, IEquatable<PositionEvent<T>>, IEquatable<PositionEvent<T>.Updated>
Inheritance
PositionEvent<T>.Updated
Implements
Inherited Members

Constructors

Updated(Symbol, DecimalAmount, DecimalAmount, DecimalAmount, PositionSource, T)

Construct an Updated event.

public Updated(Symbol symbol, DecimalAmount deltaQuantity, DecimalAmount newQuantity, DecimalAmount newAvgEntry, PositionSource source, T updatedAt)

Parameters

symbol Symbol
deltaQuantity DecimalAmount
newQuantity DecimalAmount
newAvgEntry DecimalAmount
source PositionSource
updatedAt T

Properties

DeltaQuantity

The signed change in quantity (positive = increase, negative = decrease).

public override DecimalAmount DeltaQuantity { get; }

Property Value

DecimalAmount

NewAvgEntry

New average entry price (or unchanged for funding/withdrawal).

public DecimalAmount NewAvgEntry { get; }

Property Value

DecimalAmount

NewQuantity

New total signed quantity.

public DecimalAmount NewQuantity { get; }

Property Value

DecimalAmount

Source

Originating source.

public PositionSource Source { get; }

Property Value

PositionSource

Symbol

The instrument whose holding changed.

public override Symbol Symbol { get; }

Property Value

Symbol

Time

The time at which this event's fact occurred.

public override T Time { get; }

Property Value

T

UpdatedAt

Time of the update.

public T UpdatedAt { get; }

Property Value

T