IMarketDataStorageDrive

StockSharp.Algo.Storages

The interface, describing the storage, associated with IMarketDataStorage.

Свойства

Drive : IMarketDataDrive

The storage (database, file etc.).

Методы

ClearDatesCacheAsync(CancellationToken) : ValueTask

To delete cache-files, containing information on available time ranges.

cancellationToken
CancellationToken

Возвращает: ValueTask

DeleteAsync(DateTime, CancellationToken) : ValueTask

To remove market data on specified date from the storage.

date
Date, for which all data shall be deleted.
cancellationToken
CancellationToken

Возвращает: ValueTask

GetDatesAsync() : IAsyncEnumerable<DateTime>

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

Возвращает: Available dates.

LoadStreamAsync(DateTime, bool, CancellationToken) : ValueTask<Stream>

To load data in the format of StockSharp storage.

date
Date, for which data shall be loaded.
readOnly
Get stream in read mode only.
cancellationToken
CancellationToken

Возвращает: Data in the format of StockSharp storage. If no data exists, Null will be returned.

SaveStreamAsync(DateTime, Stream, CancellationToken) : ValueTask

To save data in the format of StockSharp storage.

date
The date, for which data shall be saved.
stream
Data in the format of StockSharp storage.
cancellationToken
CancellationToken

Возвращает: ValueTask