Show / Hide Table of Contents

Class MBTradingMessageAdapter

Адаптер сообщений для StockSharp.MBTrading.

Inheritance
Object
BaseLogSource
BaseLogReceiver
MessageAdapter
MBTradingMessageAdapter
Implements
IMessageAdapter
IMessageChannel
Ecng.Common.ICloneable<IMessageChannel>
ICloneable
Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
IDisposable
INotifyPropertyChanged
ILoginPasswordAdapter
Inherited Members
MessageAdapter.IMessageChannel.Open()
MessageAdapter.IMessageChannel.Close()
MessageAdapter.IMessageChannel.Suspend()
MessageAdapter.IMessageChannel.Resume()
MessageAdapter.IMessageChannel.Clear()
MessageAdapter.SendInMessage(Message)
MessageAdapter.SendOutMessage(Message)
MessageAdapter.SendOutDisconnectMessage(Boolean)
MessageAdapter.SendOutDisconnectMessage(Exception)
MessageAdapter.SendOutError(String)
MessageAdapter.SendOutError(Exception)
MessageAdapter.SendSubscriptionReply(Int64, Exception)
MessageAdapter.SendSubscriptionNotSupported(Int64)
MessageAdapter.SendSubscriptionFinished(Int64, Nullable<DateTimeOffset>)
MessageAdapter.SendSubscriptionOnline(Int64)
MessageAdapter.SendSubscriptionResult(ISubscriptionMessage)
MessageAdapter.CreateOrderLogMarketDepthBuilder(SecurityId)
MessageAdapter.GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
MessageAdapter.GetCandleArgs(Type, SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
MessageAdapter.GetMaxCount(DataType)
MessageAdapter.IsSecurityRequired(DataType)
MessageAdapter.Clone()
MessageAdapter.OnPropertyChanged(String)
MessageAdapter.SupportedInMessages
MessageAdapter.SupportedOutMessages
MessageAdapter.SupportedResultMessages
MessageAdapter.PossibleSupportedMessages
MessageAdapter.SupportedMarketDataTypes
MessageAdapter.SecurityClassInfo
MessageAdapter.CandlesBuildFrom
MessageAdapter.CheckTimeFrameByRequest
MessageAdapter.HeartbeatInterval
MessageAdapter.IsNativeIdentifiersPersistable
MessageAdapter.IsNativeIdentifiers
MessageAdapter.IsFullCandlesOnly
MessageAdapter.IsSupportSubscriptions
MessageAdapter.IsSupportCandlesUpdates
MessageAdapter.IsSupportCandlesPriceLevels
MessageAdapter.Categories
MessageAdapter.StorageName
MessageAdapter.Platform
MessageAdapter.FeatureName
MessageAdapter.SecurityExtendedFields
MessageAdapter.SupportedOrderBookDepths
MessageAdapter.IsSupportOrderBookIncrements
MessageAdapter.IsSupportExecutionsPnL
MessageAdapter.IsSecurityNewsOnly
MessageAdapter.OrderConditionType
MessageAdapter.HeartbeatBeforConnect
MessageAdapter.Icon
MessageAdapter.IsAutoReplyOnTransactonalUnsubscription
MessageAdapter.EnqueueSubscriptions
MessageAdapter.IsSupportTransactionLog
MessageAdapter.IsReplaceCommandEditCurrent
MessageAdapter.GenerateOrderBookFromLevel1
MessageAdapter.ReConnectionSettings
MessageAdapter.TransactionIdGenerator
MessageAdapter.IMessageChannel.State
MessageAdapter.UseChannels
MessageAdapter.IterationInterval
MessageAdapter.LookupTimeout
MessageAdapter.IsPositionsEmulationRequired
MessageAdapter.Name
MessageAdapter.NewOutMessage
MessageAdapter.IMessageChannel.StateChanged
BaseLogReceiver.ILogReceiver.AddLog(LogMessage)
BaseLogSource.RaiseLog(LogMessage)
BaseLogSource.Id
BaseLogSource.Parent
BaseLogSource.LogLevel
BaseLogSource.CurrentTime
BaseLogSource.IsRoot
BaseLogSource.ParentRemoved
BaseLogSource.Log
Namespace: StockSharp.MBTrading
Assembly: StockSharp.MBTrading.dll
Syntax
[DisplayNameLoc("MBTrading")]
[DescriptionLoc("Str1770", "MBTrading")]
[MessageAdapterCategory]
[CategoryLoc("Forex")]
[MediaIcon("MBTrading_logo.png")]
public class MBTradingMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter

Constructors

MBTradingMessageAdapter(IdGenerator)

Создать MBTradingMessageAdapter.

Declaration
public MBTradingMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type Name Description
Ecng.Common.IdGenerator transactionIdGenerator

Генератор транзакций.

Properties

Login

Login.

Declaration
public string Login { get; set; }
Property Value
Type Description
String

MaxAttempt

Максимальное количество попыток залогиниться на сайте. По умолчанию равно 10.

Declaration
public int MaxAttempt { get; set; }
Property Value
Type Description
Int32

Password

Password.

Declaration
public SecureString Password { get; set; }
Property Value
Type Description
SecureString

Pin

Pin.

Declaration
public SecureString Pin { get; set; }
Property Value
Type Description
SecureString

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
MessageAdapter.GetHistoryStepSize(DataType, out TimeSpan)

IsAllDownloadingSupported(DataType)

Доступно ли для указанного dataType загрузка всех инструментов.

Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type Name Description
DataType dataType

Тип данных.

Returns
Type Description
Boolean

Результат проверки.

Overrides
MessageAdapter.IsAllDownloadingSupported(DataType)

Load(SettingsStorage)

Загрузить настройки.

Declaration
public override void Load(SettingsStorage storage)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage

Хранилище настроек.

Overrides
MessageAdapter.Load(SettingsStorage)

OnSendInMessage(Message)

Отправить сообщение.

Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type Name Description
Message message

Message.

Returns
Type Description
Boolean

true если переданное сообщение было обработано успешно, иначе, false.

Overrides
MessageAdapter.OnSendInMessage(Message)

Save(SettingsStorage)

Сохранить настройки.

Declaration
public override void Save(SettingsStorage storage)
Parameters
Type Name Description
Ecng.Serialization.SettingsStorage storage

Хранилище настроек.

Overrides
MessageAdapter.Save(SettingsStorage)

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
BaseLogSource.ToString()

Implements

IMessageAdapter
IMessageChannel
Ecng.Common.ICloneable<>
System.ICloneable
Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
System.IDisposable
System.ComponentModel.INotifyPropertyChanged
ILoginPasswordAdapter

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
Extensions.AddTransactionalSupport(MessageAdapter)
Extensions.RemoveTransactionalSupport(MessageAdapter)
Extensions.AddMarketDataSupport(MessageAdapter)
Extensions.RemoveMarketDataSupport(MessageAdapter)
Extensions.AddSupportedMessage(MessageAdapter, MessageTypes)
Extensions.AddSupportedMessage(MessageAdapter, MessageTypes, Nullable<Boolean>)
Extensions.AddSupportedMessage(MessageAdapter, MessageTypeInfo)
Extensions.RemoveSupportedMessage(MessageAdapter, MessageTypes)
Extensions.AddSupportedMarketDataType(MessageAdapter, DataType)
Extensions.RemoveSupportedMarketDataType(MessageAdapter, DataType)
Extensions.AddSupportedResultMessage(MessageAdapter, MessageTypes)
Extensions.RemoveSupportedResultMessage(MessageAdapter, MessageTypes)
Extensions.AddSupportedOutMessage(MessageAdapter, MessageTypes)
Extensions.RemoveSupportedOutMessage(MessageAdapter, MessageTypes)
Extensions.RemoveSupportedAllMarketDataTypes(MessageAdapter)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾