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.