SecurityTrie

StockSharp.Algo

Security trie collection.

Implementiert: ICollection<Security>, IEnumerable<Security>, IEnumerable

Konstruktoren

SecurityTrie()

Initializes a new instance of the SecurityTrie.

Eigenschaften

Count : int

Gets the number of instruments contained in the SecurityTrie.

IsReadOnly : bool

Gets a value indicating whether the ICollection is read-only.

Rückgabe: if the ICollection is read-only; otherwise, .

Methoden

Add(Security)

Add new instrument.

security
New instrument.
Clear()

Remove all instruments.

Contains(Security) : bool

Determines whether the ICollection contains a specific value.

item
The object to locate in the ICollection.

Rückgabe: if is found in the ICollection; otherwise, .

CopyTo(Security[], int)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

array
Destination array.
arrayIndex
Start index.
GetById(SecurityId) : Security

To get the instrument by the identifier.

id
Security ID.

Rückgabe: The got instrument. If there is no instrument by given criteria, is returned.

GetEnumerator() : IEnumerator<Security>

Returns an enumerator that iterates through the collection.

Rückgabe: A IEnumerator that can be used to iterate through the collection.

Remove(Security) : bool

Remove the instrument.

security
The instrument.

Rückgabe: if was successfully removed from the SecurityTrie; otherwise, .

RemoveRange(IEnumerable<Security>)

Remove the instruments.

securities
The instruments.
Retrieve(string) : IEnumerable<Security>

Find all instrument by filter.

filter
Filter

Rückgabe: Found instruments.

System#Collections#IEnumerable#GetEnumerator()

Returns an enumerator that iterates through a collection.

Rückgabe: An IEnumerator object that can be used to iterate through the collection.