Class ImportSettings
Settings of import.
Implements
Namespace: StockSharp.Algo.Import
Assembly: StockSharp.Algo.dll
Syntax
[DisplayNameLoc("Str2842")]
public class ImportSettings : NotifiableObject, IPersistable
Constructors
ImportSettings()
Создать ImportSettings.
Declaration
public ImportSettings()
Properties
AllFields
Все поля.
Declaration
public IEnumerable<FieldMapping> AllFields { get; }
Property Value
Type | Description |
---|---|
IEnumerable<FieldMapping> |
ColumnSeparator
Column separator. Tabulation is denoted by TAB.
Declaration
public string ColumnSeparator { get; set; }
Property Value
Type | Description |
---|---|
String |
DataType
Тип данных.
Declaration
public DataType DataType { get; set; }
Property Value
Type | Description |
---|---|
DataType |
Directory
Data directory.
Declaration
public string Directory { get; set; }
Property Value
Type | Description |
---|---|
String |
ExtendedFields
Расширенные поля.
Declaration
public IEnumerable<FieldMapping> ExtendedFields { get; }
Property Value
Type | Description |
---|---|
IEnumerable<FieldMapping> |
ExtendedStorage
Extended information.
Declaration
public IExtendedInfoStorageItem ExtendedStorage { get; set; }
Property Value
Type | Description |
---|---|
IExtendedInfoStorageItem |
FileMask
File mask that uses for scanning in directory. For example, candles_*.csv.
Declaration
public string FileMask { get; set; }
Property Value
Type | Description |
---|---|
String |
FileName
Full path to CSV file.
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
String |
IgnoreNonIdSecurities
Ignore securities without identifiers.
Declaration
public bool IgnoreNonIdSecurities { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IncludeSubDirectories
Include subdirectories.
Declaration
public bool IncludeSubDirectories { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Interval
Interval.
Declaration
public TimeSpan Interval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
SelectedFields
Выделенные поля.
Declaration
public IEnumerable<FieldMapping> SelectedFields { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<FieldMapping> |
SkipFromHeader
Number of lines to be skipped from the beginning of the file (if they contain meta information).
Declaration
public int SkipFromHeader { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
TimeZone
Time zone.
Declaration
public TimeZoneInfo TimeZone { get; set; }
Property Value
Type | Description |
---|---|
TimeZoneInfo |
UpdateDuplicateSecurities
Update duplicate securities if they already exists.
Declaration
public bool UpdateDuplicateSecurities { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
FillImporter(CsvImporter)
Заполнять CsvImporter.
Declaration
public void FillImporter(CsvImporter importer)
Parameters
Type | Name | Description |
---|---|---|
CsvImporter | importer | Импортер сообщений из текстового файла с CSV форматом в хранилище. |
FillParser(CsvParser)
Заполнять CsvImporter.
Declaration
public void FillParser(CsvParser parser)
Parameters
Type | Name | Description |
---|---|---|
CsvParser | parser | Парсер сообщений из текстового файла с CSV форматом. |
GetFiles()
Найти файлы для импортирования.
Declaration
public IEnumerable<string> GetFiles()
Returns
Type | Description |
---|---|
IEnumerable<String> | Список файлов. |
Load(SettingsStorage)
Загрузить настройки.
Declaration
public void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Save(SettingsStorage)
Сохранить настройки.
Declaration
public void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |