Class PositionChangeMessage
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
The message contains information about the position changes.
[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Position", Description = "PositionDesc")]
public class PositionChangeMessage : BaseChangeMessage<PositionChangeMessage, PositionChangeTypes>, IMessage, ILocalTimeMessage, ICloneable, ISubscriptionIdMessage, IOriginalTransactionIdMessage, IServerTimeMessage, IGeneratedMessage, IPortfolioNameMessage, ISecurityIdMessage, IStrategyIdMessage
- Inheritance
-
PositionChangeMessage
- Implements
- Inherited Members
- Extension Methods
Constructors
PositionChangeMessage()
Initializes a new instance of the PositionChangeMessage.
public PositionChangeMessage()
PositionChangeMessage(MessageTypes)
Initializes a new instance of the PositionChangeMessage.
protected PositionChangeMessage(MessageTypes type)
Parameters
type
MessageTypesMessage type.
Properties
BoardCode
Electronic board code.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Board", Description = "BoardCode", GroupName = "General")]
public string BoardCode { get; set; }
Property Value
ClientCode
Client code assigned by the broker.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "ClientCode", Description = "ClientCodeDesc", GroupName = "General")]
public string ClientCode { get; set; }
Property Value
DataType
Data type info.
public override DataType DataType { get; }
Property Value
DepoName
The depositary where the physical security.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Depo", Description = "DepoName", GroupName = "General")]
public string DepoName { get; set; }
Property Value
Description
Text position description.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Description", Description = "PosText", GroupName = "General")]
public string Description { get; set; }
Property Value
LimitType
Limit type for Т+ market.
[Display(ResourceType = typeof(LocalizedStrings), Name = "LimitType", Description = "PosLimit", GroupName = "General")]
public TPlusLimits? LimitType { get; set; }
Property Value
PortfolioName
Portfolio code name.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Name", Description = "PortfolioName", GroupName = "General")]
public string PortfolioName { get; set; }
Property Value
SecurityId
Security ID.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "SecurityId", Description = "SecurityId", GroupName = "General")]
public SecurityId SecurityId { get; set; }
Property Value
Side
Side.
[DataMember]
public Sides? Side { get; set; }
Property Value
StrategyId
Strategy id.
[DataMember]
public string StrategyId { get; set; }
Property Value
Methods
Clone()
Create a copy of PositionChangeMessage.
public override Message Clone()
Returns
- Message
Copy.
CopyTo(PositionChangeMessage)
Copy the message into the destination
.
public override void CopyTo(PositionChangeMessage destination)
Parameters
destination
PositionChangeMessageThe object, to which copied information.
ToString()
public override string ToString()