Table of Contents

Class TradeEvent<T>.FillReceived

Namespace
Virtufin.Base.Events.Trade
Assembly
Virtufin.Base.dll

Partial or full fill received from exchange.

public sealed record TradeEvent<T>.FillReceived : TradeEvent<T>, ITradeEvent<RichTradeAction, T>, IEvent<T>, IEquatable<IEvent<T>>, IEquatable<TradeEvent<T>>, IEquatable<TradeEvent<T>.FillReceived>
Inheritance
TradeEvent<T>.FillReceived
Implements
Inherited Members

Constructors

FillReceived(RichTradeAction, Guid, DecimalAmount, DecimalAmount, IReadOnlyDictionary<string, DecimalAmount>?, T)

Construct a FillReceived event.

public FillReceived(RichTradeAction action, Guid orderId, DecimalAmount filledQuantity, DecimalAmount fillPrice, IReadOnlyDictionary<string, DecimalAmount>? fees, T filledAt)

Parameters

action RichTradeAction
orderId Guid
filledQuantity DecimalAmount
fillPrice DecimalAmount
fees IReadOnlyDictionary<string, DecimalAmount>
filledAt T

Properties

Action

The action that produced this event (carried for correlation and audit).

public override RichTradeAction Action { get; }

Property Value

RichTradeAction

Fees

What the venue charged, per asset (BTC, BNB): an order can pay in several, and only a fee in the instrument's base asset changes the holdings. Empty when nothing was charged (NoFees); null only when the fee is unknown (a trade was missed, its source failed).

public IReadOnlyDictionary<string, DecimalAmount>? Fees { get; }

Property Value

IReadOnlyDictionary<string, DecimalAmount>

FillPrice

Price of the fill.

public DecimalAmount FillPrice { get; }

Property Value

DecimalAmount

FilledAt

Time of the fill.

public T FilledAt { get; }

Property Value

T

FilledQuantity

Quantity filled.

public DecimalAmount FilledQuantity { get; }

Property Value

DecimalAmount

NoFees

The fees of a fill nothing was charged for (a simulated fill).

public static IReadOnlyDictionary<string, DecimalAmount> NoFees { get; }

Property Value

IReadOnlyDictionary<string, DecimalAmount>

OrderId

Id of the filled order.

public Guid OrderId { get; }

Property Value

Guid

Time

The time at which this event's fact occurred.

public override T Time { get; }

Property Value

T