Class PositionEvent<T>.Opened
First fill on a flat symbol — opens a position.
public sealed record PositionEvent<T>.Opened : PositionEvent<T>, IPositionEvent<T>, IEvent<T>, IEquatable<IEvent<T>>, IEquatable<PositionEvent<T>>, IEquatable<PositionEvent<T>.Opened>
- Inheritance
-
PositionEvent<T>.Opened
- Implements
-
IEvent<T>IEquatable<IEvent<T>>
- Inherited Members
Constructors
Opened(Symbol, DecimalAmount, DecimalAmount, PositionSource, T)
Construct an Opened event.
public Opened(Symbol symbol, DecimalAmount quantity, DecimalAmount avgEntry, PositionSource source, T openedAt)
Parameters
symbolSymbolquantityDecimalAmountavgEntryDecimalAmountsourcePositionSourceopenedAtT
Properties
AvgEntry
Average entry price.
public DecimalAmount AvgEntry { get; }
Property Value
DeltaQuantity
The signed change in quantity (positive = increase, negative = decrease).
public override DecimalAmount DeltaQuantity { get; }
Property Value
OpenedAt
Time the position was opened.
public T OpenedAt { get; }
Property Value
- T
Quantity
Initial signed quantity (positive = long, negative = short).
public DecimalAmount Quantity { get; }
Property Value
Source
Originating source (fill, funding, transfer, etc.).
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