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
MessageTypesMessage type.
Properties
BrokerCode
Broker firm code.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Broker", Description = "BrokerCode", GroupName = "General")]
public string BrokerCode { get; set; }
Property Value
ClientCode
Client code assigned by the broker.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ClientCode", Description = "ClientCodeDesc", GroupName = "General")]
public string ClientCode { get; set; }
Property Value
Comment
Placed order comment.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Comment", Description = "OrderComment", GroupName = "General")]
public string Comment { get; set; }
Property Value
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
MarginMode
Margin mode.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Margin", Description = "MarginMode", GroupName = "General")]
public MarginModes? MarginMode { get; set; }
Property Value
OrderType
Order type.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "OrderType", Description = "OrderTypeDesc", GroupName = "General")]
public OrderTypes? OrderType { get; set; }
Property Value
PortfolioName
Portfolio code name.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Portfolio", Description = "OrderPortfolioName", GroupName = "General")]
public string PortfolioName { get; set; }
Property Value
StrategyId
Strategy id.
[DataMember]
public string StrategyId { get; set; }
Property Value
TransactionId
Request identifier.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Transaction", Description = "TransactionId", GroupName = "General")]
public long TransactionId { get; set; }
Property Value
UserOrderId
User's order ID.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "UserId", Description = "UserOrderId", GroupName = "General")]
public string UserOrderId { get; set; }
Property Value
Methods
CopyTo(OrderMessage)
Copy the message into the destination
.
public void CopyTo(OrderMessage destination)
Parameters
destination
OrderMessageThe object, to which copied information.
ToString()
public override string ToString()