Show / Hide Table of Contents

Class LBankMessageAdapter

The message adapter for StockSharp.LBank.

Inheritance
Object
BaseLogSource
BaseLogReceiver
MessageAdapter
LBankMessageAdapter
Implements
IMessageAdapter
IMessageChannel
Ecng.Common.ICloneable<IMessageChannel>
ICloneable
Ecng.Serialization.IPersistable
ILogReceiver
ILogSource
IDisposable
INotifyPropertyChanged
IKeySecretAdapter
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.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.IsSupportCandlesPriceLevels
MessageAdapter.Categories
MessageAdapter.StorageName
MessageAdapter.Platform
MessageAdapter.SecurityExtendedFields
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.LBank
Assembly: StockSharp.LBank.dll
Syntax
[OrderCondition]
[MediaIcon("LBank_logo.png")]
[DisplayNameLoc("LBank")]
[CategoryLoc("Cryptocurrency")]
[DescriptionLoc("Str1770", "LBank")]
[MessageAdapterCategory]
public class LBankMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IKeySecretAdapter

Constructors

LBankMessageAdapter(IdGenerator)

Initializes a new instance of the LBankMessageAdapter.

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

Transaction id generator.

Properties

AllTimeFrames

Possible time-frames.

Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type Description
IEnumerable<TimeSpan>

BalanceCheckInterval

Balance check interval. Required in case of deposit and withdraw actions.

Declaration
public TimeSpan BalanceCheckInterval { get; set; }
Property Value
Type Description
TimeSpan

FeatureName

Feature name.

Declaration
public override string FeatureName { get; }
Property Value
Type Description
String
Overrides
MessageAdapter.FeatureName

IsSupportCandlesUpdates

Support candles subscription and live updates.

Declaration
public override bool IsSupportCandlesUpdates { get; }
Property Value
Type Description
Boolean
Overrides
MessageAdapter.IsSupportCandlesUpdates

Key

Key.

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

Secret

Secret.

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

SupportedOrderBookDepths

Available options for MaxDepth.

Declaration
public override IEnumerable<int> SupportedOrderBookDepths { get; }
Property Value
Type Description
IEnumerable<Int32>
Overrides
MessageAdapter.SupportedOrderBookDepths

Methods

GetHistoryStepSize(DataType, out TimeSpan)

Get maximum size step allowed for historical download.

Declaration
public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)
Parameters
Type Name Description
DataType dataType

Data type info.

TimeSpan iterationInterval

Interval between iterations.

Returns
Type Description
TimeSpan

Step.

Overrides
MessageAdapter.GetHistoryStepSize(DataType, out TimeSpan)

GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Get possible time-frames for the specified instrument.

Declaration
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, Nullable<DateTimeOffset> from, Nullable<DateTimeOffset> to)
Parameters
Type Name Description
SecurityId securityId

Security ID.

Nullable<DateTimeOffset> from

The initial date from which you need to get data.

Nullable<DateTimeOffset> to

The final date by which you need to get data.

Returns
Type Description
IEnumerable<TimeSpan>

Possible time-frames.

Overrides
MessageAdapter.GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

IsAllDownloadingSupported(DataType)

Is for the specified dataType all securities downloading enabled.

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

Data type info.

Returns
Type Description
Boolean

Check result.

Overrides
MessageAdapter.IsAllDownloadingSupported(DataType)

Load(SettingsStorage)

Load settings.

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

Settings storage.

Overrides
MessageAdapter.Load(SettingsStorage)

OnSendInMessage(Message)

Send message.

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

Message.

Returns
Type Description
Boolean

true if the specified message was processed successfully, otherwise, false.

Overrides
MessageAdapter.OnSendInMessage(Message)

Save(SettingsStorage)

Save settings.

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

Settings 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
IKeySecretAdapter

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.
☀
☾