Table of Contents

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 IdGenerator

Transaction id generator.

Properties

AllTimeFrames

Possible time-frames.

public static IEnumerable<TimeSpan> AllTimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

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

int

CandlesBuildFrom

Possible options for candles building.

public override IEnumerable<Level1Fields> CandlesBuildFrom { get; }

Property Value

IEnumerable<Level1Fields>

CheckDates

Check dates.

[Display(ResourceType = typeof(LocalizedStrings), Name = "CheckDates", Description = "CheckDatesDesc", GroupName = "Connection", Order = 0)]
public bool CheckDates { get; set; }

Property Value

bool

TimeFrames

Get possible time-frames for the specified instrument.

protected override IEnumerable<TimeSpan> TimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

Methods

IsAllDownloadingSupported(DataType)

Is for the specified dataType all securities downloading enabled.

public override bool IsAllDownloadingSupported(DataType dataType)

Parameters

dataType DataType

Data type info.

Returns

bool

Check result.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnLevel1SubscriptionAsync(MarketDataMessage, CancellationToken)

protected override ValueTask OnLevel1SubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)

Parameters

mdMsg MarketDataMessage
cancellationToken CancellationToken

Returns

ValueTask

OnTFCandlesSubscriptionAsync(MarketDataMessage, CancellationToken)

protected override ValueTask OnTFCandlesSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)

Parameters

mdMsg MarketDataMessage
cancellationToken CancellationToken

Returns

ValueTask

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

SecurityLookupAsync(SecurityLookupMessage, CancellationToken)

public override ValueTask SecurityLookupAsync(SecurityLookupMessage lookupMsg, CancellationToken token)

Parameters

lookupMsg SecurityLookupMessage

SecurityLookupMessage.

token CancellationToken

Returns

ValueTask

ValueTask.