Table of Contents

Class SecurityMessage

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

A message containing info about the security.

[DataContract]
public class SecurityMessage : BaseSubscriptionIdMessage<SecurityMessage>, IMessage, ILocalTimeMessage, ICloneable, ISubscriptionIdMessage, IOriginalTransactionIdMessage, ISecurityIdMessage
Inheritance
SecurityMessage
Implements
Derived
Inherited Members
Extension Methods

Constructors

SecurityMessage()

Initializes a new instance of the SecurityMessage.

public SecurityMessage()

SecurityMessage(MessageTypes)

Initializes a new instance of the SecurityMessage.

protected SecurityMessage(MessageTypes type)

Parameters

type MessageTypes

Message type.

Properties

BasketCode

Basket security type. Can be null in case of regular security.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Code", Description = "BasketCode", GroupName = "Basket", Order = 200)]
public string BasketCode { get; set; }

Property Value

string

BasketExpression

Basket security expression. Can be null in case of regular security.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Expression", Description = "ExpressionDesc", GroupName = "Basket", Order = 201)]
public string BasketExpression { get; set; }

Property Value

string

BinaryOptionType

Type of binary option.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "BinaryOption", Description = "TypeBinaryOption", GroupName = "Options")]
public string BinaryOptionType { get; set; }

Property Value

string

CfiCode

Type in ISO 10962 standard.

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

Property Value

string

Class

Security class.

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

Property Value

string

Currency

Trading security currency.

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

Property Value

CurrencyTypes?

DataType

Data type info.

public override DataType DataType { get; }

Property Value

DataType

Decimals

Number of digits in price after coma.

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

Property Value

int?

ExpiryDate

Security expiration date (for derivatives - expiration, for bonds — redemption).

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

Property Value

DateTimeOffset?

FaceValue

Face value.

[DataMember]
public decimal? FaceValue { get; set; }

Property Value

decimal?

IssueDate

Date of issue.

[DataMember]
public DateTimeOffset? IssueDate { get; set; }

Property Value

DateTimeOffset?

IssueSize

Number of issued contracts.

[DataMember]
public decimal? IssueSize { get; set; }

Property Value

decimal?

MaxVolume

Maximum volume allowed in order.

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

Property Value

decimal?

MinVolume

Minimum volume allowed in order.

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

Property Value

decimal?

Multiplier

Lot multiplier.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Lot", Description = "LotVolume", GroupName = "General")]
public decimal? Multiplier { get; set; }

Property Value

decimal?

Name

Security name.

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

Property Value

string

OptionStyle

[DataMember]
public OptionStyles? OptionStyle { get; set; }

Property Value

OptionStyles?

OptionType

Option type.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "OptionsContract", Description = "OptionContractType", GroupName = "Options")]
public OptionTypes? OptionType { get; set; }

Property Value

OptionTypes?

PriceStep

Minimum price step.

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

Property Value

decimal?

PrimaryId

Identifier on primary exchange.

[DataMember]
public SecurityId PrimaryId { get; set; }

Property Value

SecurityId

SecurityId

Security ID.

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

Property Value

SecurityId

SecurityType

Security type.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Type", Description = "SecurityTypeDesc", GroupName = "General")]
public SecurityTypes? SecurityType { get; set; }

Property Value

SecurityTypes?

SettlementDate

Settlement date for security (for derivatives and bonds).

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

Property Value

DateTimeOffset?

SettlementType

[DataMember]
public SettlementTypes? SettlementType { get; set; }

Property Value

SettlementTypes?

ShortName

Short security name.

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

Property Value

string

Shortable

Can have short positions.

[DataMember]
public bool? Shortable { get; set; }

Property Value

bool?

Strike

Option strike price.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Strike", Description = "OptionStrikePrice", GroupName = "Options")]
public decimal? Strike { get; set; }

Property Value

decimal?

UnderlyingSecurityId

Underlying asset on which the current security is built.

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

Property Value

SecurityId

UnderlyingSecurityMinVolume

Minimum volume allowed in order for underlying security.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "UnderlyingMinVolume", Description = "UnderlyingMinVolumeDesc", GroupName = "General")]
public decimal? UnderlyingSecurityMinVolume { get; set; }

Property Value

decimal?

UnderlyingSecurityType

Underlying security type.

[DataMember]
public SecurityTypes? UnderlyingSecurityType { get; set; }

Property Value

SecurityTypes?

VolumeStep

Minimum volume step.

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

Property Value

decimal?

Methods

CopyEx(SecurityMessage, bool)

Copy the message into the destination.

public void CopyEx(SecurityMessage destination, bool copyBase)

Parameters

destination SecurityMessage

The object, to which copied information.

copyBase bool

Copy BaseSubscriptionIdMessage<TMessage>.

CopyTo(SecurityMessage)

Copy the message into the destination.

public override void CopyTo(SecurityMessage destination)

Parameters

destination SecurityMessage

The object, to which copied information.

CopyTo(SecurityMessage, bool)

Copy the message into the destination.

public void CopyTo(SecurityMessage destination, bool copyOriginalTransactionId)

Parameters

destination SecurityMessage

The object, to which copied information.

copyOriginalTransactionId bool

Copy OriginalTransactionId.

ToString()

public override string ToString()

Returns

string