Class OandaMessageAdapter
Адаптер сообщений для OANDA.
Inherited Members
Namespace: StockSharp.Oanda
Assembly: StockSharp.Oanda.dll
Syntax
[CategoryLoc("Forex")]
[DisplayNameLoc("Oanda")]
[MediaIcon("Oanda_logo.png")]
[DescriptionLoc("Str1770", "Oanda")]
[MessageAdapterCategory]
[OrderCondition]
public class OandaMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ITokenAdapter, IDemoAdapter
Constructors
OandaMessageAdapter(IdGenerator)
Создать OandaMessageAdapter.
Declaration
public OandaMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор транзакций. |
Fields
DefaultHeartbeatInterval
Значение по умолчанию для HeartbeatInterval.
Declaration
public static readonly TimeSpan DefaultHeartbeatInterval
Field Value
Type | Description |
---|---|
TimeSpan |
Properties
AllTimeFrames
Возможные тайм-фреймы.
Declaration
public static IEnumerable<TimeSpan> AllTimeFrames { get; }
Property Value
Type | Description |
---|---|
IEnumerable<TimeSpan> |
IsSupportExecutionsPnL
Адаптер заполняет PnL.
Declaration
public override bool IsSupportExecutionsPnL { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
IsSupportTransactionLog
Adapter translates orders changes on reply of OrderStatusMessage.
Declaration
public override bool IsSupportTransactionLog { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
LogOnlyTransactions
Write log messages only for transaction stream.
Declaration
public bool LogOnlyTransactions { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Server
Server.
Declaration
public OandaServers Server { get; set; }
Property Value
Type | Description |
---|---|
OandaServers |
Token
Token.
Declaration
public SecureString Token { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
UseCompression
Compression.
Declaration
public bool UseCompression { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
GetTimeFrames(SecurityId, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Получить возможные тайм-фреймы для указанного инструмента.
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 | Начальная дата, с которой необходимо получать данные. |
Nullable<DateTimeOffset> | to | Конечная дата, до которой необходимо получать данные. |
Returns
Type | Description |
---|---|
IEnumerable<TimeSpan> | Возможные тайм-фреймы. |
Overrides
IsAllDownloadingSupported(DataType)
Доступно ли для указанного dataType
загрузка всех инструментов.
Declaration
public override bool IsAllDownloadingSupported(DataType dataType)
Parameters
Type | Name | Description |
---|---|---|
DataType | dataType | Тип данных. |
Returns
Type | Description |
---|---|
Boolean | Результат проверки. |
Overrides
Load(SettingsStorage)
Загрузить настройки.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
OnSendInMessage(Message)
Отправить сообщение.
Declaration
protected override bool OnSendInMessage(Message message)
Parameters
Type | Name | Description |
---|---|---|
Message | message | Message. |
Returns
Type | Description |
---|---|
Boolean | true если переданное сообщение было обработано успешно, иначе, false. |
Overrides
Save(SettingsStorage)
Сохранить настройки.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Хранилище настроек. |
Overrides
Explicit Interface Implementations
IDemoAdapter.get_IsDemo()
Declaration
bool IDemoAdapter.get_IsDemo()
Returns
Type | Description |
---|---|
Boolean |
IDemoAdapter.set_IsDemo(Boolean)
Declaration
void IDemoAdapter.set_IsDemo(bool #=zRjpxbT0=)
Parameters
Type | Name | Description |
---|---|---|
Boolean | #=zRjpxbT0= |