Table of Contents

Class PositionEvent<T>.Flipped

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

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

symbol Symbol
newQuantity DecimalAmount
oldDirection Direction
newDirection Direction
flippedAt T

Properties

DeltaQuantity

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

public override DecimalAmount DeltaQuantity { get; }

Property Value

DecimalAmount

FlippedAt

Time of the flip.

public T FlippedAt { get; }

Property Value

T

NewDirection

New side.

public Direction NewDirection { get; }

Property Value

Direction

NewQuantity

New signed quantity after flip.

public DecimalAmount NewQuantity { get; }

Property Value

DecimalAmount

OldDirection

Previous side.

public Direction OldDirection { get; }

Property Value

Direction

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