Class PositionEvent<T>.Flipped
Direction changed atomically (long ↔ short).
public sealed record PositionEvent<T>.Flipped : PositionEvent<T>, IPositionEvent<T>, IEvent<T>, IEquatable<IEvent<T>>, IEquatable<PositionEvent<T>>, IEquatable<PositionEvent<T>.Flipped>
- Inheritance
-
PositionEvent<T>.Flipped
- Implements
-
IEvent<T>IEquatable<IEvent<T>>
- Inherited Members
Constructors
Flipped(Symbol, DecimalAmount, Direction, Direction, T)
Construct a Flipped event.
public Flipped(Symbol symbol, DecimalAmount newQuantity, Direction oldDirection, Direction newDirection, T flippedAt)
Parameters
symbolSymbolnewQuantityDecimalAmountoldDirectionDirectionnewDirectionDirectionflippedAtT
Properties
DeltaQuantity
The signed change in quantity (positive = increase, negative = decrease).
public override DecimalAmount DeltaQuantity { get; }
Property Value
FlippedAt
Time of the flip.
public T FlippedAt { get; }
Property Value
- T
NewDirection
New side.
public Direction NewDirection { get; }
Property Value
NewQuantity
New signed quantity after flip.
public DecimalAmount NewQuantity { get; }
Property Value
OldDirection
Previous side.
public Direction OldDirection { 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