Class SecurityId
Security ID.
Namespace: StockSharp.Messages
Assembly: StockSharp.Messages.dll
Syntax
public sealed class SecurityId : ValueType, IEquatable<SecurityId>, IPersistable
Fields
AssociatedBoardCode
Board code for combined security.
Declaration
public const string AssociatedBoardCode = "ALL"
Field Value
Type | Description |
---|---|
String |
Money
Идентификатор инструмента "Money".
Declaration
public static readonly SecurityId Money
Field Value
Type | Description |
---|---|
SecurityId |
News
Идентификатор инструмента "News".
Declaration
public static readonly SecurityId News
Field Value
Type | Description |
---|---|
SecurityId |
Properties
Bloomberg
ID in Bloomberg format.
Declaration
[DescriptionLoc("Str355", false)]
public string Bloomberg { get; set; }
Property Value
Type | Description |
---|---|
String |
BoardCode
Код электронной площадки.
Declaration
[DisplayNameLoc("Board")]
[DescriptionLoc("BoardCode", true)]
public string BoardCode { get; set; }
Property Value
Type | Description |
---|---|
String |
Cusip
ID in CUSIP format (Committee on Uniform Securities Identification Procedures).
Declaration
[DescriptionLoc("Str352", false)]
public string Cusip { get; set; }
Property Value
Type | Description |
---|---|
String |
InteractiveBrokers
ID in Interactive Brokers format.
Declaration
[DescriptionLoc("Str357", false)]
public Nullable<int> InteractiveBrokers { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
IQFeed
ID in IQFeed format.
Declaration
[DescriptionLoc("Str356", false)]
public string IQFeed { get; set; }
Property Value
Type | Description |
---|---|
String |
Isin
ID in ISIN format (International Securities Identification Number).
Declaration
[DescriptionLoc("Str353", false)]
public string Isin { get; set; }
Property Value
Type | Description |
---|---|
String |
Native
Native (internal) trading system security id.
Declaration
public object Native { get; set; }
Property Value
Type | Description |
---|---|
Object |
NativeAsInt
Внутренний числовой идентификатор торговой системы.
Declaration
public long NativeAsInt { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Plaza
ID in Plaza format.
Declaration
[DescriptionLoc("Str358", false)]
public string Plaza { get; set; }
Property Value
Type | Description |
---|---|
String |
Ric
ID in RIC format (Reuters Instrument Code).
Declaration
[DescriptionLoc("Str354", false)]
public string Ric { get; set; }
Property Value
Type | Description |
---|---|
String |
SecurityCode
Код инструмента.
Declaration
[DisplayNameLoc("Str349")]
[DescriptionLoc("Str349", true)]
public string SecurityCode { get; set; }
Property Value
Type | Description |
---|---|
String |
SecurityType
Security type.
Declaration
public Nullable<SecurityTypes> SecurityType { get; set; }
Property Value
Type | Description |
---|---|
Nullable<SecurityTypes> |
Sedol
ID in SEDOL format (Stock Exchange Daily Official List).
Declaration
[DescriptionLoc("Str351", false)]
public string Sedol { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
CreateAssociated(String)
Создать идентификатор инструмента с кодом площадки, установленным в AssociatedBoardCode.
Declaration
public static SecurityId CreateAssociated(string securityCode)
Parameters
Type | Name | Description |
---|---|---|
String | securityCode | Код инструмента. |
Returns
Type | Description |
---|---|
SecurityId | Security ID. |
Equals(SecurityId)
Сравнить SecurityId на эквивалентность.
Declaration
public bool Equals(SecurityId other)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | other | Другое значение, с которым необходимо сравнивать. |
Returns
Type | Description |
---|---|
Boolean | true, если другое значение равно текущему, иначе, false. |
Equals(Object)
Сравнить SecurityId на эквивалентность.
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
Object | other | Другое значение, с которым необходимо сравнивать. |
Returns
Type | Description |
---|---|
Boolean | true, если другое значение равно текущему, иначе, false. |
GetHashCode()
Рассчитать хэш-код объекта.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Хэш-код. |
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Operators
Equality(SecurityId, SecurityId)
Сравнить на равенство два идентификатора.
Declaration
public static bool operator ==(SecurityId left, SecurityId right)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | left | Left operand. |
SecurityId | right | Right operand. |
Returns
Type | Description |
---|---|
Boolean | true, если идентификаторы эквивалентны, иначе, false. |
Inequality(SecurityId, SecurityId)
Сравнить на неравенство два идентификатора.
Declaration
public static bool operator !=(SecurityId left, SecurityId right)
Parameters
Type | Name | Description |
---|---|---|
SecurityId | left | Left operand. |
SecurityId | right | Right operand. |
Returns
Type | Description |
---|---|
Boolean | true, если идентификаторы не эквивалентны, иначе, false. |