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
MessageTypesMessage 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
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
BinaryOptionType
Type of binary option.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "BinaryOption", Description = "TypeBinaryOption", GroupName = "Options")]
public string BinaryOptionType { get; set; }
Property Value
CfiCode
Type in ISO 10962 standard.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "CfiCode", Description = "CfiCodeDesc", GroupName = "General")]
public string CfiCode { get; set; }
Property Value
Class
Security class.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Class", Description = "SecurityClass", GroupName = "General")]
public string Class { get; set; }
Property Value
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
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
FaceValue
Face value.
[DataMember]
public decimal? FaceValue { get; set; }
Property Value
IssueDate
Date of issue.
[DataMember]
public DateTimeOffset? IssueDate { get; set; }
Property Value
IssueSize
Number of issued contracts.
[DataMember]
public decimal? IssueSize { get; set; }
Property Value
MaxVolume
Maximum volume allowed in order.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "MaxVolume", Description = "MaxVolumeDesc", GroupName = "General")]
public decimal? MaxVolume { get; set; }
Property Value
MinVolume
Minimum volume allowed in order.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "MinVolume", Description = "MinVolumeDesc", GroupName = "General")]
public decimal? MinVolume { get; set; }
Property Value
Multiplier
Lot multiplier.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Lot", Description = "LotVolume", GroupName = "General")]
public decimal? Multiplier { get; set; }
Property Value
Name
Security name.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Name", Description = "SecurityName", GroupName = "General")]
public string Name { get; set; }
Property Value
OptionStyle
[DataMember]
public OptionStyles? OptionStyle { get; set; }
Property Value
OptionType
Option type.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "OptionsContract", Description = "OptionContractType", GroupName = "Options")]
public OptionTypes? OptionType { get; set; }
Property Value
PriceStep
Minimum price step.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "PriceStep", Description = "MinPriceStep", GroupName = "General")]
public decimal? PriceStep { get; set; }
Property Value
PrimaryId
Identifier on primary exchange.
[DataMember]
public SecurityId PrimaryId { get; set; }
Property Value
SecurityId
Security ID.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Identifier", Description = "SecurityId", GroupName = "General")]
[TypeConverter(typeof(StringToSecurityIdTypeConverter))]
public SecurityId SecurityId { get; set; }
Property Value
SecurityType
Security type.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Type", Description = "SecurityTypeDesc", GroupName = "General")]
public SecurityTypes? SecurityType { get; set; }
Property Value
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
SettlementType
[DataMember]
public SettlementTypes? SettlementType { get; set; }
Property Value
ShortName
Short security name.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "ShortName", Description = "ShortNameDesc", GroupName = "General")]
public string ShortName { get; set; }
Property Value
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
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
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
UnderlyingSecurityType
Underlying security type.
[DataMember]
public SecurityTypes? UnderlyingSecurityType { get; set; }
Property Value
VolumeStep
Minimum volume step.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "VolumeStep", Description = "MinVolStep", GroupName = "General")]
public decimal? VolumeStep { get; set; }
Property Value
Methods
CopyEx(SecurityMessage, bool)
Copy the message into the destination
.
public void CopyEx(SecurityMessage destination, bool copyBase)
Parameters
destination
SecurityMessageThe object, to which copied information.
copyBase
bool
CopyTo(SecurityMessage)
Copy the message into the destination
.
public override void CopyTo(SecurityMessage destination)
Parameters
destination
SecurityMessageThe object, to which copied information.
CopyTo(SecurityMessage, bool)
Copy the message into the destination
.
public void CopyTo(SecurityMessage destination, bool copyOriginalTransactionId)
Parameters
destination
SecurityMessageThe object, to which copied information.
copyOriginalTransactionId
boolCopy OriginalTransactionId.
ToString()
public override string ToString()