Class TransaqMessageAdapter
Адаптер сообщений для Transaq.
Inherited Members
Namespace: StockSharp.Transaq
Assembly: StockSharp.Transaq.dll
Syntax
[DisplayNameLoc("Transaq")]
[CategoryLoc("Russia")]
[DescriptionLoc("Str1770", "Transaq")]
[MessageAdapterCategory]
[OrderCondition]
[MediaIcon("Transaq_logo.png")]
public class TransaqMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IAddressAdapter<EndPoint>, ILoginPasswordAdapter
Constructors
TransaqMessageAdapter(IdGenerator)
Создать TransaqMessageAdapter.
Declaration
public TransaqMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Common.IdGenerator | transactionIdGenerator | Генератор идентификаторов транзакций. |
Fields
MaxNewsHeaderCount
Максимально-допустимое количество заголовков новостей.
Declaration
public const int MaxNewsHeaderCount = 100
Field Value
Type | Description |
---|---|
Int32 |
Properties
Address
Server address.
Declaration
public EndPoint Address { get; set; }
Property Value
Type | Description |
---|---|
EndPoint |
ApiLogLevel
Уровень логирования коннектора. По умолчанию Standard.
Declaration
public ApiLogLevels ApiLogLevel { get; set; }
Property Value
Type | Description |
---|---|
ApiLogLevels |
ApiLogsPath
Путь к логам коннектора.
Declaration
public string ApiLogsPath { get; set; }
Property Value
Type | Description |
---|---|
String |
ConnectorVersion
Версия коннектора.
Declaration
public string ConnectorVersion { get; }
Property Value
Type | Description |
---|---|
String |
CurrentServer
Текущий сервер.
Declaration
public int CurrentServer { get; }
Property Value
Type | Description |
---|---|
Int32 |
DllPath
Полный путь к dll файлу, содержащее Transaq API. По-умолчанию равно txmlconnector.dll.
Declaration
public string DllPath { get; set; }
Property Value
Type | Description |
---|---|
String |
IsHFT
Подключаться ли к HFT серверу Финам.
Declaration
public bool IsHFT { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsSupportOrderBookIncrements
Адаптер транслирует инкрементальные стаканы.
Declaration
public override bool IsSupportOrderBookIncrements { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Login
Login.
Declaration
public string Login { get; set; }
Property Value
Type | Description |
---|---|
String |
MarketDataInterval
Период агрегирования данных на сервере Transaq.
Declaration
public Nullable<TimeSpan> MarketDataInterval { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
MicexRegisters
Передавать ли данные для фондового рынка.
Declaration
public bool MicexRegisters { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
OverrideDll
Перезаписать файл библиотеки из ресурсов. По-умолчанию файл будет перезаписан.
Declaration
public bool OverrideDll { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Password
Password.
Declaration
public SecureString Password { get; set; }
Property Value
Type | Description |
---|---|
SecureString |
Proxy
Прокси.
Declaration
public Proxy Proxy { get; }
Property Value
Type | Description |
---|---|
Proxy |
ServerTimeDiff
Разница между локальным и серверным временем.
Declaration
public Nullable<TimeSpan> ServerTimeDiff { get; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
Methods
DisposeManaged()
Освободить занятые ресурсы.
Declaration
protected override void DisposeManaged()
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
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |