ISecurityProvider

StockSharp.BusinessEntities

The interface for access to provider of information about instruments.

Implementa: ISecurityMessageProvider

Propriedades

Count : int

Gets the number of instruments contained in the ISecurityProvider.

Métodos

LookupAsync(SecurityLookupMessage) : IAsyncEnumerable<Security>

Lookup securities by criteria .

criteria
Message security lookup for specified criteria.

Retorna: Found instruments.

LookupByIdAsync(SecurityId, CancellationToken) : ValueTask<Security>

To get the instrument by the identifier.

id
Security ID.
cancellationToken
CancellationToken

Retorna: The got instrument. If there is no instrument by given criteria, is returned.

Eventos

Added : Action<IEnumerable<Security>>

New instruments added.

Cleared : Action

The storage was cleared.

Removed : Action<IEnumerable<Security>>

Instruments removed.