Table of Contents

Class OrderMessage

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

A message containing info about the order.

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

Constructors

OrderMessage(MessageTypes)

Initialize OrderMessage.

protected OrderMessage(MessageTypes type)

Parameters

type MessageTypes

Message type.

Properties

BrokerCode

Broker firm code.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Broker", Description = "BrokerCode", GroupName = "General")]
public string BrokerCode { get; set; }

Property Value

string

ClientCode

Client code assigned by the broker.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ClientCode", Description = "ClientCodeDesc", GroupName = "General")]
public string ClientCode { get; set; }

Property Value

string

Comment

Placed order comment.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Comment", Description = "OrderComment", GroupName = "General")]
public string Comment { get; set; }

Property Value

string

Condition

Order condition (e.g., stop- and algo- orders parameters).

[Display(ResourceType = typeof(LocalizedStrings), Name = "Condition", Description = "OrderConditionDesc", GroupName = "General")]
public OrderCondition Condition { get; set; }

Property Value

OrderCondition

MarginMode

Margin mode.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Margin", Description = "MarginMode", GroupName = "General")]
public MarginModes? MarginMode { get; set; }

Property Value

MarginModes?

OrderType

Order type.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "OrderType", Description = "OrderTypeDesc", GroupName = "General")]
public OrderTypes? OrderType { get; set; }

Property Value

OrderTypes?

PortfolioName

Portfolio code name.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Portfolio", Description = "OrderPortfolioName", GroupName = "General")]
public string PortfolioName { get; set; }

Property Value

string

StrategyId

Strategy id.

[DataMember]
public string StrategyId { get; set; }

Property Value

string

TransactionId

Request identifier.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Transaction", Description = "TransactionId", GroupName = "General")]
public long TransactionId { get; set; }

Property Value

long

UserOrderId

User's order ID.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "UserId", Description = "UserOrderId", GroupName = "General")]
public string UserOrderId { get; set; }

Property Value

string

Methods

CopyTo(OrderMessage)

Copy the message into the destination.

public void CopyTo(OrderMessage destination)

Parameters

destination OrderMessage

The object, to which copied information.

ToString()

public override string ToString()

Returns

string