Struct SimpleOrder<U>
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
UUnit 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
BuySellBuyOrSellLimitOrMarketLimitOrMarketOrderQuantityDecimalQuantity<U>
Properties
BuySell
public BuyOrSell BuySell { get; init; }
Property Value
LimitOrMarket
public LimitOrMarketOrder LimitOrMarket { get; init; }
Property Value
Quantity
public DecimalQuantity<U> Quantity { get; init; }
Property Value
Methods
IsBuy()
Returns true if this is a buy-side order.
public bool IsBuy()
Returns
IsLimitOrder()
Returns true if this is a limit order.
public bool IsLimitOrder()
Returns
IsMarketOrder()
Returns true if this is a market order.
public bool IsMarketOrder()
Returns
IsSell()
Returns true if this is a sell-side order.
public bool IsSell()