InMemorySecurityStorage

StockSharp.Algo.Storages

In memory implementation of ISecurityStorage.

Implementa: ISecurityStorage, ISecurityProvider, ISecurityMessageProvider

Constructores

InMemorySecurityStorage()

Initializes a new instance of the InMemorySecurityStorage.

InMemorySecurityStorage(ISecurityProvider)

Initializes a new instance of the InMemorySecurityStorage.

underlying
Underlying provider.

Métodos

DeleteAsync(Security, CancellationToken) : ValueTask

Delete security.

security
Security.
cancellationToken
Cancellation token.

Devuelve: Operation task.

DeleteByAsync(SecurityLookupMessage, CancellationToken) : ValueTask

To delete instruments by the criterion.

criteria
The criterion.
cancellationToken
Cancellation token.

Devuelve: Operation task.

DeleteRangeAsync(IEnumerable<Security>, CancellationToken) : ValueTask

Delete securities.

securities
Securities.
cancellationToken
Cancellation token.

Devuelve: Operation task.

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.

SaveAsync(Security, bool, CancellationToken) : ValueTask

Save security.

security
Security.
forced
Forced update.
cancellationToken
Cancellation token.

Devuelve: Operation task.

Eventos

Added : Action<IEnumerable<Security>>

The new native security identifier added to storage.

Cleared : Action

The storage was cleared.

Removed : Action<IEnumerable<Security>>

Instruments removed.