Table of Contents

Struct SimpleOrder<U>

Namespace
Virtufin.Base.Orders
Assembly
Virtufin.Base.dll

A simple order: buy or sell side, limit or market execution type, and a quantity.

public readonly record struct SimpleOrder<U> : IEquatable<SimpleOrder<U>> where U : IUnit

Type Parameters

U

Unit of the traded instrument.

Implements
Inherited Members

Constructors

SimpleOrder(BuyOrSell, LimitOrMarketOrder, DecimalQuantity<U>)

A simple order: buy or sell side, limit or market execution type, and a quantity.

public SimpleOrder(BuyOrSell Side, LimitOrMarketOrder LimitOrMarket, DecimalQuantity<U> Quantity)

Parameters

Side BuyOrSell
LimitOrMarket LimitOrMarketOrder
Quantity DecimalQuantity<U>

Properties

LimitOrMarket

public LimitOrMarketOrder LimitOrMarket { get; init; }

Property Value

LimitOrMarketOrder

Quantity

public DecimalQuantity<U> Quantity { get; init; }

Property Value

DecimalQuantity<U>

Side

public BuyOrSell Side { get; init; }

Property Value

BuyOrSell

Methods

IsBuy()

Returns true if this is a buy-side order.

public bool IsBuy()

Returns

bool

IsLimitOrder()

Returns true if this is a limit order.

public bool IsLimitOrder()

Returns

bool

IsMarketOrder()

Returns true if this is a market order.

public bool IsMarketOrder()

Returns

bool

IsSell()

Returns true if this is a sell-side order.

public bool IsSell()

Returns

bool