ISnapshotStorage

StockSharp.Algo.Storages

The interface for access to the storage of snapshot prices.

Properties

Dates
public IEnumerable<DateTime> Dates { get; }
value = iSnapshotStorage.Dates

To get all the dates for which market data are recorded.

Methods

ClearAllAsync
public ValueTask ClearAllAsync(CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAllAsync(cancellationToken)

Clear storage.

cancellationToken
CancellationToken

Returns: ValueTask

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

Remove snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

Returns: ValueTask

GetAllAsync
public IAsyncEnumerable<Message> 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.

Returns: All snapshots.

GetAsync
public ValueTask<Message> GetAsync(object key, CancellationToken cancellationToken)
result = iSnapshotStorage.GetAsync(key, cancellationToken)

Get snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

Returns: Snapshot.

UpdateAsync
public ValueTask UpdateAsync(Message message, CancellationToken cancellationToken)
result = iSnapshotStorage.UpdateAsync(message, cancellationToken)

Update snapshot.

message
Message.
cancellationToken
CancellationToken

Returns: ValueTask