Table of Contents

Class OrderRegisterMessage

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

The message containing the information for the order registration.

[DataContract]
public class OrderRegisterMessage : OrderMessage, IMessage, ILocalTimeMessage, ICloneable, ISubscriptionIdMessage, IOriginalTransactionIdMessage, ISecurityIdMessage, ITransactionIdMessage, IPortfolioNameMessage, IStrategyIdMessage
Inheritance
OrderRegisterMessage
Implements
Derived
Inherited Members
Extension Methods

Constructors

OrderRegisterMessage()

Initializes a new instance of the OrderRegisterMessage.

public OrderRegisterMessage()

OrderRegisterMessage(MessageTypes)

protected OrderRegisterMessage(MessageTypes type)

Parameters

type MessageTypes

Message type.

Properties

IsManual

Is order manual.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Manual", Description = "IsOrderManual", GroupName = "General")]
public bool? IsManual { get; set; }

Property Value

bool?

IsMarketMaker

Is the order of market-maker.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "MarketMaker", Description = "MarketMakerOrder", GroupName = "General")]
public bool? IsMarketMaker { get; set; }

Property Value

bool?

Leverage

Margin leverage.

[DataMember]
public int? Leverage { get; set; }

Property Value

int?

MinOrderVolume

Minimum quantity of an order to be executed.

[DataMember]
public decimal? MinOrderVolume { get; set; }

Property Value

decimal?

PositionEffect

Position effect.

[DataMember]
public OrderPositionEffects? PositionEffect { get; set; }

Property Value

OrderPositionEffects?

PostOnly

Post-only order.

[DataMember]
public bool? PostOnly { get; set; }

Property Value

bool?

Price

Order price.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Price", Description = "OrderPrice", GroupName = "General")]
public decimal Price { get; set; }

Property Value

decimal

Side

Order side (buy or sell).

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Direction", Description = "OrderSideDesc", GroupName = "General")]
public Sides Side { get; set; }

Property Value

Sides

Slippage

Slippage in trade price.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Slippage", Description = "SlippageTrade", GroupName = "General")]
public decimal? Slippage { get; set; }

Property Value

decimal?

TillDate

Order expiry time. The default is null, which mean (GTC).

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Expiration", Description = "OrderExpirationTime", GroupName = "General")]
public DateTimeOffset? TillDate { get; set; }

Property Value

DateTimeOffset?

Remarks

If the value is equal null, order will be GTC (good til cancel). Or uses exact date.

TimeInForce

Limit order time in force.

[Display(ResourceType = typeof(LocalizedStrings), Name = "TimeInForce", Description = "LimitOrderTif", GroupName = "General")]
public TimeInForce? TimeInForce { get; set; }

Property Value

TimeInForce?

VisibleVolume

Visible quantity of contracts in order.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "VisibleVolume", Description = "VisibleVolumeDesc", GroupName = "General")]
public decimal? VisibleVolume { get; set; }

Property Value

decimal?

Volume

Number of contracts in the order.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Volume", Description = "OrderVolume", GroupName = "General")]
public decimal Volume { get; set; }

Property Value

decimal

Methods

Clone()

Create a copy of OrderRegisterMessage.

public override Message Clone()

Returns

Message

Copy.

CopyTo(OrderRegisterMessage)

Copy the message into the destination.

public void CopyTo(OrderRegisterMessage destination)

Parameters

destination OrderRegisterMessage

The object, to which copied information.

ToString()

public override string ToString()

Returns

string