IMarketDataStorageDrive
StockSharp.Algo.Storages
The interface, describing the storage, associated with IMarketDataStorage.
Propriedades
Drive : IMarketDataDrive
The storage (database, file etc.).
Métodos
ClearDatesCacheAsync(CancellationToken) : ValueTask
To delete cache-files, containing information on available time ranges.
- cancellationToken
- CancellationToken
Retorna: 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
Retorna: ValueTask
GetDatesAsync() : IAsyncEnumerable<DateTime>
To get all the dates for which market data are recorded.
Retorna: 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
Retorna: 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
Retorna: ValueTask