Table of Contents

Interface IMarketDataStorageDrive

Namespace
StockSharp.Algo.Storages
Assembly
StockSharp.Algo.dll

The interface, describing the storage, associated with IMarketDataStorage.

public interface IMarketDataStorageDrive
Extension Methods

Properties

Dates

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

IEnumerable<DateTime> Dates { get; }

Property Value

IEnumerable<DateTime>

Drive

The storage (database, file etc.).

IMarketDataDrive Drive { get; }

Property Value

IMarketDataDrive

Methods

ClearDatesCache()

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

void ClearDatesCache()

Delete(DateTime)

To remove market data on specified date from the storage.

void Delete(DateTime date)

Parameters

date DateTime

Date, for which all data shall be deleted.

LoadStream(DateTime, bool)

To load data in the format of StockSharp storage.

Stream LoadStream(DateTime date, bool readOnly = false)

Parameters

date DateTime

Date, for which data shall be loaded.

readOnly bool

Get stream in read mode only.

Returns

Stream

Data in the format of StockSharp storage. If no data exists, Null will be returned.

SaveStream(DateTime, Stream)

To save data in the format of StockSharp storage.

void SaveStream(DateTime date, Stream stream)

Parameters

date DateTime

The date, for which data shall be saved.

stream Stream

Data in the format of StockSharp storage.