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
SecurityIdSecurity ID.
encoding
EncodingEncoding.
Methods
Read(FastCsvReader, IMarketDataMetaInfo)
Read data from the specified reader.
protected override PositionChangeMessage Read(FastCsvReader reader, IMarketDataMetaInfo metaInfo)
Parameters
reader
FastCsvReaderCSV reader.
metaInfo
IMarketDataMetaInfoMeta-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
CsvFileWriterCSV writer.
data
PositionChangeMessageData.
metaInfo
IMarketDataMetaInfoMeta-information on data for one day.