CsvImporter

StockSharp.Algo.Import

Messages importer from text file in CSV format into storage.

继承自: CsvParser

构造函数

CsvImporter(DataType, IEnumerable<FieldMapping>, ISecurityStorage, IExchangeInfoProvider, Func<SecurityId, IMarketDataStorage>)

Messages importer from text file in CSV format into storage.

dataType
Data type info.
fields
Importing fields.
securityStorage
Securities meta info storage.
exchangeInfoProvider
Exchanges and trading boards provider.
getStorage
Function to get IMarketDataStorage by SecurityId.

属性

UpdateDuplicateSecurities : bool

Update duplicate securities if they already exists.

方法

Import(Stream, Action<int>, CancellationToken) : ValueTask<ValueTuple<int, DateTime?>>

Import from CSV file.

stream
The file stream.
updateProgress
Progress notification.
cancellationToken
CancellationToken

返回值: Count and last time.

事件

SecurityUpdated : Action<Security, bool>

Security updated event.