Class FxcmMessageAdapter
- Namespace
- StockSharp.Fxcm
- Assembly
- StockSharp.Fxcm.dll
The message adapter for StockSharp.Fxcm.
[OrderCondition(typeof(FxcmOrderCondition))]
[MediaIcon("fxcm_logo.svg")]
[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
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
FxcmMessageAdapter(IdGenerator)
Initializes a new instance of the FxcmMessageAdapter.
public FxcmMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction 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?)
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)
Parameters
securityId
SecurityIdSecurity ID.
from
DateTimeOffset?The initial date from which you need to get data.
to
DateTimeOffset?The final date by which you need to get data.
Returns
- IEnumerable<TimeSpan>
Possible time-frames.
IsAllDownloadingSupported(DataType)
Is for the specified dataType
all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
dataType
DataTypeData type info.
Returns
- bool
Check result.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)
Parameters
message
MessageMessage.
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()