Table of Contents

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

string

Money

"Money" security id.

public static readonly SecurityId Money

Field Value

SecurityId

News

"News" security id.

public static readonly SecurityId News

Field Value

SecurityId

Properties

Bloomberg

ID in Bloomberg format.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Bloomberg", Description = "BloombergDesc")]
public string Bloomberg { readonly get; set; }

Property Value

string

BoardCode

Electronic board code.

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

Property Value

string

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

string

IQFeed

ID in IQFeed format.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "IQFeed", Description = "IQFeedDesc")]
public string IQFeed { readonly get; set; }

Property Value

string

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

Determines the id is Money or News.

public readonly bool IsSpecial { get; }

Property Value

bool

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

string

Native

Native (internal) trading system security id.

public object Native { get; set; }

Property Value

object

NativeAsInt

Native (internal) trading system security id represented as integer.

public long NativeAsInt { get; set; }

Property Value

long

Plaza

ID in Plaza format.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Plaza", Description = "PlazaDesc")]
public string Plaza { readonly get; set; }

Property Value

string

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

string

SecurityCode

Security code.

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

Property Value

string

SecurityType

Security type.

[Obsolete]
public SecurityTypes? SecurityType { get; set; }

Property Value

SecurityTypes?

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

string

Methods

CreateAssociated(string)

Create security id with board code set as AssociatedBoardCode.

public static SecurityId CreateAssociated(string securityCode)

Parameters

securityCode string

Security code.

Returns

SecurityId

Security ID.

Equals(SecurityId)

Compare SecurityId on the equivalence.

public bool Equals(SecurityId other)

Parameters

other SecurityId

Another value with which to compare.

Returns

bool

true, if the specified object is equal to the current object, otherwise, false.

Equals(object)

Compare SecurityId on the equivalence.

public override bool Equals(object other)

Parameters

other object

Another value with which to compare.

Returns

bool

true, if the specified object is equal to the current object, otherwise, false.

GetHashCode()

Get the hash code of the object.

public override int GetHashCode()

Returns

int

A hash code.

Immutable()

Make immutable.

public SecurityId Immutable()

Returns

SecurityId

SecurityId.

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(SecurityId, SecurityId)

Compare two identifiers for equality.

public static bool operator ==(SecurityId left, SecurityId right)

Parameters

left SecurityId

Left operand.

right SecurityId

Right operand.

Returns

bool

true, if the specified identifiers are equal, otherwise, false.

operator !=(SecurityId, SecurityId)

Compare the inequality of two identifiers.

public static bool operator !=(SecurityId left, SecurityId right)

Parameters

left SecurityId

Left operand.

right SecurityId

Right operand.

Returns

bool

true, if identifiers are equal, otherwise, false.