Table of Contents

Class PositionEvent<T>.Opened

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

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

symbol Symbol
quantity DecimalAmount
avgEntry DecimalAmount
source PositionSource
openedAt T

Properties

AvgEntry

Average entry price.

public DecimalAmount AvgEntry { get; }

Property Value

DecimalAmount

DeltaQuantity

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

public override DecimalAmount DeltaQuantity { get; }

Property Value

DecimalAmount

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

DecimalAmount

Source

Originating source (fill, funding, transfer, etc.).

public PositionSource Source { get; }

Property Value

PositionSource

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