Class PositionEvent<T>.Closed
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
-
IEvent<T>IEquatable<IEvent<T>>
- Inherited Members
Constructors
Closed(Symbol, T, DecimalAmount)
Construct a Closed event.
public Closed(Symbol symbol, T closedAt, DecimalAmount realizedPnL)
Parameters
symbolSymbolclosedAtTrealizedPnLDecimalAmount
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
RealizedPnL
Realized P&L from the close.
public DecimalAmount RealizedPnL { 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