Class FxcmMessageAdapter
- Namespace
- StockSharp.Fxcm
- Assembly
- StockSharp.Fxcm.dll
The message adapter for StockSharp.Fxcm.
[OrderCondition(typeof(FxcmOrderCondition))]
[MediaIcon("fxcm_logo.svg")]
[Doc("topics/Fxcm.html")]
[MessageAdapterCategory(MessageAdapterCategories.FX|MessageAdapterCategories.History|MessageAdapterCategories.RealTime|MessageAdapterCategories.Free|MessageAdapterCategories.Candles|MessageAdapterCategories.Level1|MessageAdapterCategories.Transactions)]
public class FxcmMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ITokenAdapter, IDemoAdapter
- Inheritance
-
FxcmMessageAdapter
- Implements
- Inherited Members
- Extension Methods
Constructors
FxcmMessageAdapter(IdGenerator)
Initializes a new instance of the FxcmMessageAdapter.
public FxcmMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGeneratorIdGeneratorTransaction id generator.
Properties
AllTimeFrames
Possible time-frames.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
AssociatedBoard
public override string AssociatedBoard { get; }
Property Value
FeatureName
Feature name.
public override string FeatureName { get; }
Property Value
IsDemo
Connect to demo trading instead of real trading server.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Demo", Description = "Str3388", GroupName = "Str174", Order = 0)]
public bool IsDemo { get; set; }
Property Value
IsReplaceCommandEditCurrent
Is the OrderReplaceMessage command edit a current order.
public override bool IsReplaceCommandEditCurrent { get; }
Property Value
Token
Token.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Str3451", Description = "AccessToken", GroupName = "Str174", Order = 1)]
public SecureString Token { get; set; }
Property Value
Methods
GetTimeFrames(SecurityId, DateTimeOffset?, DateTimeOffset?)
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)
Parameters
securityIdSecurityIdfromDateTimeOffset?toDateTimeOffset?
Returns
IsAllDownloadingSupported(DataType)
Is for the specified dataType all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataTypeDataTypeData type info.
Returns
- bool
Check result.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
messageMessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storageSettingsStorageSettings storage.
ToString()
public override string ToString()