Class CSVMessageAdapter
- Namespace
- StockSharp.CSV
- Assembly
- StockSharp.CSV.dll
The message adapter for StockSharp.CSV.
[MediaIcon("CSV_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "CSV", Description = "MarketDataConnector", GroupName = "MarketData")]
[MessageAdapterCategory(MessageAdapterCategories.Stock|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class CSVMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
- Inheritance
-
CSVMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
CSVMessageAdapter(IdGenerator)
Initializes a new instance of the CSVMessageAdapter.
public CSVMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
Settings
Settings of import.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Settings", Description = "ImportSettings", GroupName = "Connection", Order = 0)]
public IEnumerable<ImportSettings> Settings { get; set; }
Property Value
SupportedMarketDataTypes
Supported by adapter market data types.
public override IEnumerable<DataType> SupportedMarketDataTypes { get; }
Property Value
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
Methods
GetHistoryStepSize(SecurityId, DataType, out TimeSpan)
Get maximum size step allowed for historical download.
public override TimeSpan GetHistoryStepSize(SecurityId securityId, DataType dataType, out TimeSpan iterationInterval)
Parameters
securityId
SecurityIddataType
DataTypeData type info.
iterationInterval
TimeSpanInterval between iterations.
Returns
- TimeSpan
Step.
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- bool
Check result.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.