Table of Contents

Class PositionEvent<T>.Closed

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

Net quantity reached zero — position closed.

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

Constructors

Closed(Symbol, T, DecimalAmount)

Construct a Closed event.

public Closed(Symbol symbol, T closedAt, DecimalAmount realizedPnL)

Parameters

symbol Symbol
closedAt T
realizedPnL DecimalAmount

Properties

ClosedAt

Time of close.

public T ClosedAt { get; }

Property Value

T

DeltaQuantity

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

public override DecimalAmount DeltaQuantity { get; }

Property Value

DecimalAmount

RealizedPnL

Realized P&L from the close.

public DecimalAmount RealizedPnL { get; }

Property Value

DecimalAmount

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