Table of Contents

Class TransaqMessageAdapter

Namespace
StockSharp.Transaq
Assembly
StockSharp.Transaq.dll

Адаптер сообщений для Transaq.

[OrderCondition(typeof(TransaqOrderCondition))]
[MediaIcon("Transaq_logo.png")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Transaq", Description = "StockConnector", GroupName = "Russia")]
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.Stock|MessageAdapterCategories.RealTime|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.News|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class TransaqMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter, IAddressAdapter<EndPoint>, IDemoAdapter
Inheritance
TransaqMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

TransaqMessageAdapter(IdGenerator)

Создать TransaqMessageAdapter.

public TransaqMessageAdapter(IdGenerator transactionIdGenerator)

Parameters

transactionIdGenerator IdGenerator

Генератор идентификаторов транзакций.

Fields

MaxNewsHeaderCount

Максимально-допустимое количество заголовков новостей.

public const int MaxNewsHeaderCount = 100

Field Value

int

Properties

Address

Server address.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Address", Description = "ServerAddressDot", GroupName = "Connection", Order = 2)]
public EndPoint Address { get; set; }

Property Value

EndPoint

ApiLogLevel

Уровень логирования коннектора. По умолчанию Standard.

[Display(ResourceType = typeof(LocalizedStrings), Name = "LogLevel", Description = "ConnectionLogLevel", GroupName = "General", Order = 2)]
public ApiLogLevels ApiLogLevel { get; set; }

Property Value

ApiLogLevels

ApiLogsPath

Путь к логам коннектора.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PathLogs", Description = "PathLogsDesc", GroupName = "General", Order = 7)]
public string ApiLogsPath { get; set; }

Property Value

string

ConnectorVersion

Версия коннектора.

[Browsable(false)]
public string ConnectorVersion { get; }

Property Value

string

CurrentServer

Текущий сервер.

[Browsable(false)]
public int CurrentServer { get; }

Property Value

int

DllPath

Полный путь к dll файлу, содержащее Transaq API.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PathDll", Description = "PathDllDesc", GroupName = "General", Order = 1)]
public string DllPath { get; set; }

Property Value

string

FeatureName

Feature name.

public override string FeatureName { get; }

Property Value

string

IsDemo

Connect to demo trading instead of real trading server.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Demo", Description = "DemoTradingConnect", GroupName = "Connection", Order = 3)]
public bool IsDemo { get; set; }

Property Value

bool

IsHFT

Подключаться ли к HFT серверу Финам.

[Display(ResourceType = typeof(LocalizedStrings), Name = "HFT", Description = "HFTFinamConnect", GroupName = "Connection", Order = 6)]
public bool IsHFT { get; set; }

Property Value

bool

IsSupportOrderBookIncrements

Adapter translates incremental order books.

public override bool IsSupportOrderBookIncrements { get; }

Property Value

bool

Login

Login.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "Connection", Order = 0)]
public string Login { get; set; }

Property Value

string

MarketDataInterval

Период агрегирования данных на сервере Transaq.

[Display(ResourceType = typeof(LocalizedStrings), Name = "AggPeriod", Description = "AggPeriodDesc", GroupName = "General", Order = 4)]
public TimeSpan? MarketDataInterval { get; set; }

Property Value

TimeSpan?

MicexRegisters

Передавать ли данные для фондового рынка.

[Display(ResourceType = typeof(LocalizedStrings), Name = "StockData", Description = "StockDataDesc", GroupName = "General", Order = 3)]
public bool MicexRegisters { get; set; }

Property Value

bool

OverrideDll

Перезаписать файл библиотеки из ресурсов. По-умолчанию файл будет перезаписан.

[Browsable(false)]
[Obsolete]
public bool OverrideDll { get; set; }

Property Value

bool

Password

Password.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "Connection", Order = 1)]
public SecureString Password { get; set; }

Property Value

SecureString

Proxy

Прокси.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Proxy", Description = "ProxyUsed", GroupName = "Connection", Order = 3)]
public Proxy Proxy { get; }

Property Value

Proxy

ServerTimeDiff

Разница между локальным и серверным временем.

[Browsable(false)]
public TimeSpan? ServerTimeDiff { get; }

Property Value

TimeSpan?

TimeFrames

Get possible time-frames for the specified instrument.

protected override IEnumerable<TimeSpan> TimeFrames { get; }

Property Value

IEnumerable<TimeSpan>

Methods

DisposeManaged()

Освободить занятые ресурсы.

protected override void DisposeManaged()

IsAllDownloadingSupported(DataType)

Is for the specified dataType all securities downloading enabled.

public override bool IsAllDownloadingSupported(DataType dataType)

Parameters

dataType DataType

Data type info.

Returns

bool

Check result.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

ToString()

public override string ToString()

Returns

string