CsvImporter
StockSharp.Algo.Import
Messages importer from text file in CSV format into storage.
Erbt von: CsvParser
Konstruktoren
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.
Eigenschaften
UpdateDuplicateSecurities : bool
Update duplicate securities if they already exists.
Methoden
Import(Stream, Action<int>, CancellationToken) : ValueTask<ValueTuple<int, DateTime?>>
Import from CSV file.
- stream
- The file stream.
- updateProgress
- Progress notification.
- cancellationToken
- CancellationToken
Rückgabe: Count and last time.
Ereignisse
SecurityUpdated : Action<Security, bool>
Security updated event.