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
Properties
Address
Server address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Address", Description = "ServerAddressDot", GroupName = "Connection", Order = 2)]
public EndPoint Address { get; set; }
Property Value
ApiLogLevel
Уровень логирования коннектора. По умолчанию Standard.
[Display(ResourceType = typeof(LocalizedStrings), Name = "LogLevel", Description = "ConnectionLogLevel", GroupName = "General", Order = 2)]
public ApiLogLevels ApiLogLevel { get; set; }
Property Value
ApiLogsPath
Путь к логам коннектора.
[Display(ResourceType = typeof(LocalizedStrings), Name = "PathLogs", Description = "PathLogsDesc", GroupName = "General", Order = 7)]
public string ApiLogsPath { get; set; }
Property Value
ConnectorVersion
Версия коннектора.
[Browsable(false)]
public string ConnectorVersion { get; }
Property Value
CurrentServer
Текущий сервер.
[Browsable(false)]
public int CurrentServer { get; }
Property Value
DllPath
Полный путь к dll файлу, содержащее Transaq API.
[Display(ResourceType = typeof(LocalizedStrings), Name = "PathDll", Description = "PathDllDesc", GroupName = "General", Order = 1)]
public string DllPath { get; set; }
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 = "DemoTradingConnect", GroupName = "Connection", Order = 3)]
public bool IsDemo { get; set; }
Property Value
IsHFT
Подключаться ли к HFT серверу Финам.
[Display(ResourceType = typeof(LocalizedStrings), Name = "HFT", Description = "HFTFinamConnect", GroupName = "Connection", Order = 6)]
public bool IsHFT { get; set; }
Property Value
IsSupportOrderBookIncrements
Adapter translates incremental order books.
public override bool IsSupportOrderBookIncrements { get; }
Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "Connection", Order = 0)]
public string Login { get; set; }
Property Value
MarketDataInterval
Период агрегирования данных на сервере Transaq.
[Display(ResourceType = typeof(LocalizedStrings), Name = "AggPeriod", Description = "AggPeriodDesc", GroupName = "General", Order = 4)]
public TimeSpan? MarketDataInterval { get; set; }
Property Value
MicexRegisters
Передавать ли данные для фондового рынка.
[Display(ResourceType = typeof(LocalizedStrings), Name = "StockData", Description = "StockDataDesc", GroupName = "General", Order = 3)]
public bool MicexRegisters { get; set; }
Property Value
OverrideDll
Перезаписать файл библиотеки из ресурсов. По-умолчанию файл будет перезаписан.
[Browsable(false)]
[Obsolete]
public bool OverrideDll { get; set; }
Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "Connection", Order = 1)]
public SecureString Password { get; set; }
Property Value
Proxy
Прокси.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Proxy", Description = "ProxyUsed", GroupName = "Connection", Order = 3)]
public Proxy Proxy { get; }
Property Value
ServerTimeDiff
Разница между локальным и серверным временем.
[Browsable(false)]
public TimeSpan? ServerTimeDiff { get; }
Property Value
TimeFrames
Get possible time-frames for the specified instrument.
protected override IEnumerable<TimeSpan> TimeFrames { get; }
Property Value
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
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()