Table of Contents

Class PositionCsvSerializer

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

The position change serializer in the CSV format.

public class PositionCsvSerializer : CsvMarketDataSerializer<PositionChangeMessage>, IMarketDataSerializer<PositionChangeMessage>, IMarketDataSerializer
Inheritance
PositionCsvSerializer
Implements
Inherited Members
Extension Methods

Constructors

PositionCsvSerializer(SecurityId, Encoding)

Initializes a new instance of the PositionCsvSerializer.

public PositionCsvSerializer(SecurityId securityId, Encoding encoding = null)

Parameters

securityId SecurityId

Security ID.

encoding Encoding

Encoding.

Methods

Read(FastCsvReader, IMarketDataMetaInfo)

Read data from the specified reader.

protected override PositionChangeMessage Read(FastCsvReader reader, IMarketDataMetaInfo metaInfo)

Parameters

reader FastCsvReader

CSV reader.

metaInfo IMarketDataMetaInfo

Meta-information on data for one day.

Returns

PositionChangeMessage

Data.

Write(CsvFileWriter, PositionChangeMessage, IMarketDataMetaInfo)

Write data to the specified writer.

protected override void Write(CsvFileWriter writer, PositionChangeMessage data, IMarketDataMetaInfo metaInfo)

Parameters

writer CsvFileWriter

CSV writer.

data PositionChangeMessage

Data.

metaInfo IMarketDataMetaInfo

Meta-information on data for one day.