Class PositionEvent<T>.Updated
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
-
IEvent<T>IEquatable<IEvent<T>>
- 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
symbolSymboldeltaQuantityDecimalAmountnewQuantityDecimalAmountnewAvgEntryDecimalAmountsourcePositionSourceupdatedAtT
Properties
DeltaQuantity
The signed change in quantity (positive = increase, negative = decrease).
public override DecimalAmount DeltaQuantity { get; }
Property Value
NewAvgEntry
New average entry price (or unchanged for funding/withdrawal).
public DecimalAmount NewAvgEntry { get; }
Property Value
NewQuantity
New total signed quantity.
public DecimalAmount NewQuantity { get; }
Property Value
Source
Originating source.
public PositionSource Source { get; }
Property Value
Symbol
The instrument whose holding changed.
public override Symbol Symbol { get; }
Property Value
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