CollectionSecurityProvider

StockSharp.Algo

The supplier of information on instruments, getting data from the collection.

Implementa: ISecurityProvider, ISecurityMessageProvider

Constructores

CollectionSecurityProvider()

Initializes a new instance of the CollectionSecurityProvider.

CollectionSecurityProvider(IEnumerable<Security>)

Initializes a new instance of the CollectionSecurityProvider.

securities
The instruments collection.

Propiedades

Count : int

Gets the count of pending messages.

Métodos

Add(Security)

Add security.

security
Security.
AddRange(IEnumerable<Security>)

Add securities.

securities
Securities.
Clear()

Clear.

LookupAsync(SecurityLookupMessage) : IAsyncEnumerable<Security>

Lookup securities by criteria .

criteria
Message security lookup for specified criteria.

Devuelve: Found instruments.

LookupByIdAsync(SecurityId, CancellationToken) : ValueTask<Security>

To get the instrument by the identifier.

id
Security ID.
cancellationToken
CancellationToken

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

Remove(Security) : bool

Remove security.

security
Security.

Devuelve: if security was removed, otherwise .

RemoveRange(IEnumerable<Security>)

Remove securities.

securities
Securities.