Table of Contents

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 MessageTypes

Message type.

Properties

BoardCode

Electronic board code.

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

Property Value

string

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

string

DataType

Data type info.

public override DataType DataType { get; }

Property Value

DataType

DepoName

The depositary where the physical security.

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

Property Value

string

Description

Text position description.

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

Property Value

string

LimitType

Limit type for Т+ market.

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

Property Value

TPlusLimits?

PortfolioName

Portfolio code name.

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

Property Value

string

SecurityId

Security ID.

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

Property Value

SecurityId

Side

Side.

[DataMember]
public Sides? Side { get; set; }

Property Value

Sides?

StrategyId

Strategy id.

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

Property Value

string

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 PositionChangeMessage

The object, to which copied information.

ToString()

public override string ToString()

Returns

string