Class GainCapitalMessageAdapter
Адаптер сообщений для StockSharp.GainCapital.
Inherited Members
Namespace: StockSharp.GainCapital
Assembly: StockSharp.GainCapital.dll
Syntax
[DisplayNameLoc("GainCapital")]
[CategoryLoc("Forex")]
[DescriptionLoc("Str1770", "GainCapital")]
[MessageAdapterCategory]
[MediaIcon("GainCapital_logo.png")]
public class GainCapitalMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged
Constructors
GainCapitalMessageAdapter(IdGenerator)
Создать GainCapitalMessageAdapter.
Declaration
public GainCapitalMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор транзакций. |
Methods
GetHistoryStepSize(DataType, out TimeSpan)
Получить максимальный размер шага, доступный для скачивания истории.
Declaration
public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
TimeSpan | iterationInterval | Interval between iterations. |
Returns
Type | Description |
---|---|
TimeSpan | Step. |
Overrides
IsAllDownloadingSupported(DataType)
Доступно ли для указанного dataType
загрузка всех инструментов.
Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
Returns
Type | Description |
---|---|
Boolean | Результат проверки. |
Overrides
OnSendInMessage(Message)
Отправить сообщение.
Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Boolean | true если переданное сообщение было обработано успешно, иначе, false. |
Overrides
Implements
Ecng.Common.ICloneable<>
Ecng.Serialization.IPersistable