Table of Contents

Interface IMarketDataSerializer

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

The serializer.

public interface IMarketDataSerializer
Extension Methods

Properties

Format

Storage format.

StorageFormats Format { get; }

Property Value

StorageFormats

TimePrecision

Time precision.

TimeSpan TimePrecision { get; }

Property Value

TimeSpan

Methods

CreateMetaInfo(DateTime)

To create empty meta-information.

IMarketDataMetaInfo CreateMetaInfo(DateTime date)

Parameters

date DateTime

Date.

Returns

IMarketDataMetaInfo

Meta-information on data for one day.

Deserialize(Stream, IMarketDataMetaInfo)

To load data from the stream.

IEnumerable Deserialize(Stream stream, IMarketDataMetaInfo metaInfo)

Parameters

stream Stream

Data stream.

metaInfo IMarketDataMetaInfo

Meta-information on data for one day.

Returns

IEnumerable

Data.

Serialize(Stream, IEnumerable, IMarketDataMetaInfo)

Save data into stream.

void Serialize(Stream stream, IEnumerable data, IMarketDataMetaInfo metaInfo)

Parameters

stream Stream

Data stream.

data IEnumerable

Data.

metaInfo IMarketDataMetaInfo

Meta-information on data for one day.