Class OrderMessage
A message containing info about the order.
Inheritance
OrderMessage
Implements
Inherited Members
Namespace: StockSharp.Messages
Assembly: StockSharp.Messages.dll
Syntax
public abstract class OrderMessage : SecurityMessage, IExtendableEntity, ISubscriptionIdMessage, IOriginalTransactionIdMessage, ISecurityIdMessage, ITransactionIdMessage, IPortfolioNameMessage, IStrategyIdMessage, IMessage, ICloneable
Constructors
OrderMessage(MessageTypes)
Initialize OrderMessage.
Declaration
protected OrderMessage(MessageTypes type)
Parameters
Type | Name | Description |
---|---|---|
MessageTypes | type | Message type. |
Properties
BrokerCode
Broker firm code.
Declaration
[CategoryLoc("Str2593")]
[DisplayNameLoc("Broker")]
[DescriptionLoc("Str2619", false)]
public string BrokerCode { get; set; }
Property Value
Type | Description |
---|---|
String |
ClientCode
Client code assigned by the broker.
Declaration
[CategoryLoc("Str2593")]
[DisplayNameLoc("ClientCode")]
[DescriptionLoc("ClientCodeDesc", false)]
public string ClientCode { get; set; }
Property Value
Type | Description |
---|---|
String |
Comment
Placed order comment.
Declaration
[DisplayNameLoc("Str135")]
[DescriptionLoc("Str136", false)]
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
String |
Condition
Order condition (e.g., stop- and algo- orders parameters).
Declaration
[DisplayNameLoc("Str154")]
[DescriptionLoc("Str155", false)]
[CategoryLoc("Str156")]
public OrderCondition Condition { get; set; }
Property Value
Type | Description |
---|---|
OrderCondition |
IsMargin
Is margin enabled.
Declaration
[DisplayNameLoc("Margin")]
[DescriptionLoc("IsMargin", false)]
public Nullable<bool> IsMargin { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
OrderType
Order type.
Declaration
[DisplayNameLoc("Str132")]
[DescriptionLoc("Str133", false)]
public Nullable<OrderTypes> OrderType { get; set; }
Property Value
Type | Description |
---|---|
Nullable<OrderTypes> |
PortfolioName
Portfolio code name.
Declaration
[DisplayNameLoc("Portfolio")]
[DescriptionLoc("Str229", false)]
public string PortfolioName { get; set; }
Property Value
Type | Description |
---|---|
String |
StrategyId
Strategy id.
Declaration
public string StrategyId { get; set; }
Property Value
Type | Description |
---|---|
String |
TransactionId
Request identifier.
Declaration
[DisplayNameLoc("Transaction")]
[DescriptionLoc("TransactionId", true)]
public long TransactionId { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
UserOrderId
User's order ID.
Declaration
[DisplayNameLoc("Str165")]
[DescriptionLoc("Str166", false)]
public string UserOrderId { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
CopyTo(OrderMessage)
Copy the message into the destination
.
Declaration
public void CopyTo(OrderMessage destination)
Parameters
Type | Name | Description |
---|---|---|
OrderMessage | destination | The object, to which copied information. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |