Class DukasCopyMessageAdapter
- Namespace
- StockSharp.DukasCopy
- Assembly
- StockSharp.DukasCopy.dll
The message adapter for StockSharp.DukasCopy.
[MediaIcon("DukasCopy_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "DukasCopy", Description = "ForexConnector", GroupName = "Forex")]
[MessageAdapterCategory(MessageAdapterCategories.FX|MessageAdapterCategories.History|MessageAdapterCategories.Free|MessageAdapterCategories.Candles|MessageAdapterCategories.Level1)]
public class DukasCopyMessageAdapter : HistoricalAsyncMessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
- Inheritance
-
DukasCopyMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
DukasCopyMessageAdapter(IdGenerator)
Initializes a new instance of the DukasCopyMessageAdapter.
public DukasCopyMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Attempts
Number of attempts when error happened.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Errors", Description = "MaxErrors", GroupName = "Connection", Order = 0)]
public int Attempts { get; set; }
Property Value
CandlesBuildFrom
Possible options for candles building.
public override IEnumerable<Level1Fields> CandlesBuildFrom { get; }
Property Value
CheckDates
Check dates.
[Display(ResourceType = typeof(LocalizedStrings), Name = "CheckDates", Description = "CheckDatesDesc", GroupName = "Connection", Order = 0)]
public bool CheckDates { get; set; }
Property Value
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
Methods
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.
OnLevel1SubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SecurityLookupAsync(SecurityLookupMessage, CancellationToken)
Process SecurityLookupMessage.
public override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)
Parameters
lookupMsg
SecurityLookupMessagetoken
CancellationToken