ISnapshotStorage

StockSharp.Algo.Storages

A interface para o acesso ao armazenamento de preços instantâneos.

Implementa: ISnapshotStorage

Métodos

ClearAsync
public ValueTask ClearAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAsync(key, cancellationToken)

Remove snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

Retorna: ValueTask

GetAllAsync
public IAsyncEnumerable<TMessage> GetAllAsync(DateTime? from, DateTime? to)
result = iSnapshotStorage.GetAllAsync(from, to)

Get all snapshots.

from
Start date, from which data needs to be retrieved.
to
End date, until which data needs to be retrieved.

Retorna: All snapshots.

GetAsync
public ValueTask<TMessage> GetAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.GetAsync(key, cancellationToken)

Get snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

Retorna: Snapshot.