Table of Contents

Struct SimpleOrder<U>

Namespace
Virtufin.Core.Position
Assembly
Virtufin.Core.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 BuySell, LimitOrMarketOrder LimitOrMarket, DecimalQuantity<U> Quantity)

Parameters

BuySell BuyOrSell
LimitOrMarket LimitOrMarketOrder
Quantity DecimalQuantity<U>

Properties

BuySell

public BuyOrSell BuySell { get; init; }

Property Value

BuyOrSell

LimitOrMarket

public LimitOrMarketOrder LimitOrMarket { get; init; }

Property Value

LimitOrMarketOrder

Quantity

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

Property Value

DecimalQuantity<U>

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