Struct SecurityId
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Security ID.
[DataContract]
public struct SecurityId : IEquatable<SecurityId>, IPersistable
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Fields
AssociatedBoardCode
Board code for combined security.
public const string AssociatedBoardCode = "ALL"
Field Value
Money
"Money" security id.
public static readonly SecurityId Money
Field Value
News
"News" security id.
public static readonly SecurityId News
Field Value
Properties
Bloomberg
ID in Bloomberg format.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Bloomberg", Description = "BloombergDesc")]
public string Bloomberg { readonly get; set; }
Property Value
BoardCode
Electronic board code.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Board", Description = "BoardCode", GroupName = "General")]
public string BoardCode { get; set; }
Property Value
Cusip
ID in CUSIP format (Committee on Uniform Securities Identification Procedures).
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Cusip", Description = "CusipDesc")]
public string Cusip { readonly get; set; }
Property Value
IQFeed
ID in IQFeed format.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "IQFeed", Description = "IQFeedDesc")]
public string IQFeed { readonly get; set; }
Property Value
InteractiveBrokers
ID in Interactive Brokers format.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "InteractiveBrokers", Description = "InteractiveBrokersDesc")]
public int? InteractiveBrokers { readonly get; set; }
Property Value
- int?
IsSpecial
public readonly bool IsSpecial { get; }
Property Value
Isin
ID in ISIN format (International Securities Identification Number).
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Isin", Description = "IsinDesc")]
public string Isin { readonly get; set; }
Property Value
Native
Native (internal) trading system security id.
public object Native { get; set; }
Property Value
NativeAsInt
Native (internal) trading system security id represented as integer.
public long NativeAsInt { get; set; }
Property Value
Plaza
ID in Plaza format.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Plaza", Description = "PlazaDesc")]
public string Plaza { readonly get; set; }
Property Value
Ric
ID in RIC format (Reuters Instrument Code).
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Ric", Description = "RicDesc")]
public string Ric { readonly get; set; }
Property Value
SecurityCode
Security code.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "SecCode", Description = "SecCode", GroupName = "General")]
public string SecurityCode { get; set; }
Property Value
SecurityType
Security type.
[Obsolete]
public SecurityTypes? SecurityType { get; set; }
Property Value
Sedol
ID in SEDOL format (Stock Exchange Daily Official List).
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Sedol", Description = "SedolDesc")]
public string Sedol { readonly get; set; }
Property Value
Methods
CreateAssociated(string)
Create security id with board code set as AssociatedBoardCode.
public static SecurityId CreateAssociated(string securityCode)
Parameters
securityCode
stringSecurity code.
Returns
- SecurityId
Security ID.
Equals(SecurityId)
Compare SecurityId on the equivalence.
public bool Equals(SecurityId other)
Parameters
other
SecurityIdAnother value with which to compare.
Returns
Equals(object)
Compare SecurityId on the equivalence.
public override bool Equals(object other)
Parameters
other
objectAnother value with which to compare.
Returns
GetHashCode()
Get the hash code of the object.
public override int GetHashCode()
Returns
- int
A hash code.
Immutable()
Make immutable.
public SecurityId Immutable()
Returns
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()
Returns
Operators
operator ==(SecurityId, SecurityId)
Compare two identifiers for equality.
public static bool operator ==(SecurityId left, SecurityId right)
Parameters
left
SecurityIdLeft operand.
right
SecurityIdRight operand.
Returns
operator !=(SecurityId, SecurityId)
Compare the inequality of two identifiers.
public static bool operator !=(SecurityId left, SecurityId right)
Parameters
left
SecurityIdLeft operand.
right
SecurityIdRight operand.