Table of Contents

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

IEnumerable<FieldMapping>

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

string

DataType

Data type info.

[Display(ResourceType = typeof(LocalizedStrings), Name = "DataType", Description = "DataType", GroupName = "Common", Order = 0)]
public DataType DataType { get; set; }

Property Value

DataType

Directory

Data directory.

[Display(ResourceType = typeof(LocalizedStrings), Name = "DataDirectory", Description = "DataDirectoryDot", GroupName = "Common", Order = 2)]
public string Directory { get; set; }

Property Value

string

ExtendedFields

Extended fields.

[Browsable(false)]
public IEnumerable<FieldMapping> ExtendedFields { get; }

Property Value

IEnumerable<FieldMapping>

ExtendedStorage

Extended information.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ExtendedInfo", Description = "ExtendedInfoImport", GroupName = "Securities", Order = 40)]
public IExtendedInfoStorageItem ExtendedStorage { get; set; }

Property Value

IExtendedInfoStorageItem

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

string

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

string

IgnoreNonIdSecurities

Ignore securities without identifiers.

[Display(ResourceType = typeof(LocalizedStrings), Name = "IgnoreNonIdSecurities", Description = "IgnoreNonIdSecuritiesDesc", GroupName = "Securities", Order = 41)]
public bool IgnoreNonIdSecurities { get; set; }

Property Value

bool

IncludeSubDirectories

Include subdirectories.

[Display(ResourceType = typeof(LocalizedStrings), Name = "SubDirectories", Description = "SubDirectoriesInclude", GroupName = "Common", Order = 4)]
public bool IncludeSubDirectories { get; set; }

Property Value

bool

Interval

Interval.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Interval", Description = "IntervalDataUpdates", GroupName = "Common", Order = 8)]
public TimeSpan Interval { get; set; }

Property Value

TimeSpan

LineSeparator

Line separator.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Line", Description = "LineSeparator", GroupName = "Common", Order = 6)]
public string LineSeparator { get; set; }

Property Value

string

SelectedFields

Selected fields.

[Browsable(false)]
public IEnumerable<FieldMapping> SelectedFields { get; set; }

Property Value

IEnumerable<FieldMapping>

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

int

TimeZone

Time zone.

[Display(ResourceType = typeof(LocalizedStrings), Name = "TimeZone", Description = "TimeZoneDot", GroupName = "Common", Order = 7)]
public TimeZoneInfo TimeZone { get; set; }

Property Value

TimeZoneInfo

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

bool

Methods

FillImporter(CsvImporter)

public void FillImporter(CsvImporter importer)

Parameters

importer CsvImporter

Messages importer from text file in CSV format into storage.

FillParser(CsvParser)

public void FillParser(CsvParser parser)

Parameters

parser CsvParser

Messages 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 SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string