Class DigitexFuturesMessageAdapter
The message adapter for StockSharp.DigitexFutures.
Inherited Members
Namespace: StockSharp.DigitexFutures
Assembly: StockSharp.DigitexFutures.dll
Syntax
[OrderCondition]
[MediaIcon("DigitexFutures_logo.png")]
[DisplayNameLoc("DigitexFutures")]
[CategoryLoc("Cryptocurrency")]
[DescriptionLoc("Str1770", "DigitexFutures")]
[MessageAdapterCategory]
public class DigitexFuturesMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ITokenAdapter, IDemoAdapter, IAddressAdapter<string>
Constructors
DigitexFuturesMessageAdapter(IdGenerator)
Initializes a new instance of the DigitexFuturesMessageAdapter.
Declaration
public DigitexFuturesMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Transaction id generator. |
Properties
AddressDemo
Address (demo).
Declaration
public string AddressDemo { get; set; }
Property Value
Type | Description |
---|---|
String |
AddressReal
Address.
Declaration
public string AddressReal { get; set; }
Property Value
Type | Description |
---|---|
String |
AllTimeFrames
Possible time-frames.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
FeatureName
Feature name.
Declaration
public override string FeatureName { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
IsDemo
Connect to demo trading instead of real trading server.
Declaration
public bool IsDemo { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsNativeIdentifiers
Identify security in messages by native identifier Native.
Declaration
public override bool IsNativeIdentifiers { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSupportExecutionsPnL
Adapter fills PnL.
Declaration
public override bool IsSupportExecutionsPnL { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSupportOrderBookIncrements
Adapter translates incremental order books.
Declaration
public override bool IsSupportOrderBookIncrements { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
SupportedOrderBookDepths
Available options for MaxDepth.
Declaration
public override IEnumerable<int> SupportedOrderBookDepths { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Int32> |
Overrides
Token
Token.
Declaration
public SecureString Token { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
TraderId
Client ID.
Declaration
public int TraderId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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
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
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
Explicit Interface Implementations
IAddressAdapter<String>.Address
Declaration
string IAddressAdapter<string>.Address { get; set; }
Returns
Type | Description |
---|---|
String |