Class CryptopiaMessageAdapter
The message adapter for StockSharp.Cryptopia.
Inherited Members
Namespace: StockSharp.Cryptopia
Assembly: StockSharp.Cryptopia.dll
Syntax
[OrderCondition]
[MediaIcon("Cryptopia_logo.png")]
[DisplayNameLoc("Cryptopia")]
[CategoryLoc("Cryptocurrency")]
[DescriptionLoc("Str1770", "Cryptopia")]
[MessageAdapterCategory]
public class CryptopiaMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IKeySecretAdapter
Constructors
CryptopiaMessageAdapter(IdGenerator)
Initializes a new instance of the CryptopiaMessageAdapter.
Declaration
public CryptopiaMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Transaction id generator. |
Properties
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
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
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
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
Load(SettingsStorage)
Load settings.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Overrides
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
Save(SettingsStorage)
Save settings.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Implements
Ecng.Common.ICloneable<>
Ecng.Serialization.IPersistable