CsvParser

StockSharp.Algo.Import

Messages parser from text file in CSV format.

继承自: BaseLogReceiver

构造函数

CsvParser(DataType, IEnumerable<FieldMapping>)

Initializes a new instance of the CsvParser.

dataType
Data type info.
fields
Importing fields.

属性

ColumnSeparator : string

Column separator. Tabulation is denoted by TAB.

DataType : DataType

Data type info.

Fields : IEnumerable<FieldMapping>

Importing fields.

IgnoreNonIdSecurities : bool

Ignore securities without identifiers.

LineSeparator : string

Line separator.

SkipFromHeader : int

Number of lines to be skipped from the beginning of the file (if they contain meta information).

方法

Parse(Stream) : IAsyncEnumerable<Message>

Parse CSV file.

stream
The file stream.

返回值: Parsed instances.