Class ImportSettings
- Namespace
- StockSharp.Algo.Import
- Assembly
- StockSharp.Algo.dll
Settings of import.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ImportSettings")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ImportSettings : NotifiableObject, IPersistable
- Inheritance
-
ImportSettings
- Implements
-
IPersistable
- Extension Methods
Constructors
ImportSettings()
Initializes a new instance of the ImportSettings.
public ImportSettings()
Properties
AllFields
All fields.
[Browsable(false)]
public IEnumerable<FieldMapping> AllFields { get; }
Property Value
ColumnSeparator
Column separator. Tabulation is denoted by TAB.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ColumnSeparator", Description = "ColumnSeparatorDesc", GroupName = "Common", Order = 5)]
public string ColumnSeparator { get; set; }
Property Value
DataType
Data type info.
[Display(ResourceType = typeof(LocalizedStrings), Name = "DataType", Description = "DataType", GroupName = "Common", Order = 0)]
public DataType DataType { get; set; }
Property Value
Directory
Data directory.
[Display(ResourceType = typeof(LocalizedStrings), Name = "DataDirectory", Description = "DataDirectoryDot", GroupName = "Common", Order = 2)]
public string Directory { get; set; }
Property Value
ExtendedFields
Extended fields.
[Browsable(false)]
public IEnumerable<FieldMapping> ExtendedFields { get; }
Property Value
ExtendedStorage
Extended information.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ExtendedInfo", Description = "ExtendedInfoImport", GroupName = "Securities", Order = 40)]
public IExtendedInfoStorageItem ExtendedStorage { get; set; }
Property Value
FileMask
File mask that uses for scanning in directory. For example, candles_*.csv.
[Display(ResourceType = typeof(LocalizedStrings), Name = "FileMask", Description = "FileMaskDescription", GroupName = "Common", Order = 3)]
public string FileMask { get; set; }
Property Value
FileName
Full path to CSV file.
[Display(ResourceType = typeof(LocalizedStrings), Name = "FileName", Description = "FilePathCsv", GroupName = "Common", Order = 1)]
public string FileName { get; set; }
Property Value
IgnoreNonIdSecurities
Ignore securities without identifiers.
[Display(ResourceType = typeof(LocalizedStrings), Name = "IgnoreNonIdSecurities", Description = "IgnoreNonIdSecuritiesDesc", GroupName = "Securities", Order = 41)]
public bool IgnoreNonIdSecurities { get; set; }
Property Value
IncludeSubDirectories
Include subdirectories.
[Display(ResourceType = typeof(LocalizedStrings), Name = "SubDirectories", Description = "SubDirectoriesInclude", GroupName = "Common", Order = 4)]
public bool IncludeSubDirectories { get; set; }
Property Value
Interval
Interval.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Interval", Description = "IntervalDataUpdates", GroupName = "Common", Order = 8)]
public TimeSpan Interval { get; set; }
Property Value
LineSeparator
Line separator.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Line", Description = "LineSeparator", GroupName = "Common", Order = 6)]
public string LineSeparator { get; set; }
Property Value
SelectedFields
Selected fields.
[Browsable(false)]
public IEnumerable<FieldMapping> SelectedFields { get; set; }
Property Value
SkipFromHeader
Number of lines to be skipped from the beginning of the file (if they contain meta information).
[Display(ResourceType = typeof(LocalizedStrings), Name = "SkipLines", Description = "SkipLinesDesc", GroupName = "Common", Order = 6)]
public int SkipFromHeader { get; set; }
Property Value
TimeZone
Time zone.
[Display(ResourceType = typeof(LocalizedStrings), Name = "TimeZone", Description = "TimeZoneDot", GroupName = "Common", Order = 7)]
public TimeZoneInfo TimeZone { get; set; }
Property Value
UpdateDuplicateSecurities
Update duplicate securities if they already exists.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Duplicates", Description = "UpdateDuplicateSecurities", GroupName = "Securities", Order = 40)]
public bool UpdateDuplicateSecurities { get; set; }
Property Value
Methods
FillImporter(CsvImporter)
Fill CsvImporter.
public void FillImporter(CsvImporter importer)
Parameters
importer
CsvImporterMessages importer from text file in CSV format into storage.
FillParser(CsvParser)
Fill CsvImporter.
public void FillParser(CsvParser parser)
Parameters
parser
CsvParserMessages parser from text file in CSV format.
GetFiles()
Find files for importing.
public IEnumerable<string> GetFiles()
Returns
- IEnumerable<string>
File list.
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()