CsvImporter

StockSharp.Algo.Import

Messages importer from text file in CSV format into storage.

Herda de: CsvParser

Construtores

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.

Propriedades

UpdateDuplicateSecurities : bool

Update duplicate securities if they already exists.

Métodos

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

Import from CSV file.

stream
The file stream.
updateProgress
Progress notification.
cancellationToken
CancellationToken

Retorna: Count and last time.

Eventos

SecurityUpdated : Action<Security, bool>

Security updated event.