Class PositionEvent<T>
Sealed algebraic data type of position events. The unified stream driving
all holdings changes — funding, deposits, withdrawals, AND fills (a fill
produces two PositionEvent<T>.Updated events atomically, one per side of the
trade). Topics use the naming scheme
sc.{scenarioId}.position.{entity}.{event}.
public abstract record PositionEvent<T> : IPositionEvent<T>, IEvent<T>, IEquatable<IEvent<T>>, IEquatable<PositionEvent<T>> where T : IComparable<T>
Type Parameters
TThe event's own time type.
- Inheritance
-
PositionEvent<T>
- Implements
-
IEvent<T>IEquatable<IEvent<T>>
- Derived
- Inherited Members
Properties
DeltaQuantity
The signed change in quantity (positive = increase, negative = decrease).
public abstract DecimalAmount DeltaQuantity { get; }
Property Value
Symbol
The instrument whose holding changed.
public abstract Symbol Symbol { get; }
Property Value
Time
The time at which this event's fact occurred.
public abstract T Time { get; }
Property Value
- T