Class SmartComMessageAdapter
- Namespace
- StockSharp.SmartCom
- Assembly
- StockSharp.SmartCom.dll
Адаптер сообщений для SmartCOM.
[OrderCondition(typeof(SmartComOrderCondition))]
[MediaIcon("ITInvest_logo.svg")]
[Doc("topics/Smart.html")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "SmartCOM", Description = "StockConnector", GroupName = "Russia")]
[MessageAdapterCategory(MessageAdapterCategories.Russia|MessageAdapterCategories.Stock|MessageAdapterCategories.RealTime|MessageAdapterCategories.Free|MessageAdapterCategories.Ticks|MessageAdapterCategories.Candles|MessageAdapterCategories.MarketDepth|MessageAdapterCategories.Level1|MessageAdapterCategories.Transactions|MessageAdapterCategories.Futures|MessageAdapterCategories.Options)]
public class SmartComMessageAdapter : MessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, ILoginPasswordAdapter, IDemoAdapter, IAddressAdapter<EndPoint>- Inheritance
- 
      
      
      
      
      
      SmartComMessageAdapter
- Implements
- Inherited Members
- Extension Methods
Constructors
SmartComMessageAdapter(IdGenerator)
Создать SmartComMessageAdapter.
public SmartComMessageAdapter(IdGenerator transactionIdGenerator)Parameters
- transactionIdGeneratorIdGenerator
- Генератор идентификаторов транзакций. 
Properties
Address
Server address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Address", Description = "ServerAddressDot", GroupName = "Connection", Order = 0)]
[ItemsSource(typeof(#=zHiSgHqPXqv6zfX2bHw$9U6jUMyeK))]
public EndPoint Address { get; set; }Property Value
AllTimeFrames
Возможные тайм-фреймы.
public static IEnumerable<TimeSpan> AllTimeFrames { get; }Property Value
ClientSettings
Настройки конфигурации клиентской части SmartCOM.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ClientSettings", Description = "ClientSettingsPath", GroupName = "General", Order = 1)]
public string ClientSettings { get; set; }Property Value
FeatureName
Feature name.
public override string FeatureName { get; }Property Value
IsNativeIdentifiers
Identify security in messages by native identifier Native.
public override bool IsNativeIdentifiers { get; }Property Value
IsReplaceCommandEditCurrent
Is the OrderReplaceMessage command edit a current order.
public override bool IsReplaceCommandEditCurrent { get; }Property Value
Login
Login.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Login", Description = "LoginDot", GroupName = "Connection", Order = 1)]
public string Login { get; set; }Property Value
Password
Password.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Password", Description = "PasswordDot", GroupName = "Connection", Order = 2)]
public SecureString Password { get; set; }Property Value
PortfolioBoardCodes
Ассоциация площадок и их кодами, для заполнения BoardCode.
[Browsable(false)]
public IDictionary<string, string> PortfolioBoardCodes { get; }Property Value
ServerSettings
Настройки конфигурации серверной части SmartCOM.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ServerConfig", Description = "ServerConfigPath", GroupName = "General", Order = 2)]
public string ServerSettings { get; set; }Property Value
Version
Версия API. По-умолчанию равна V4.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Version", Description = "VersionApi", GroupName = "General", Order = 0)]
public SmartComVersions Version { get; set; }Property Value
Methods
GetHistoryStepSize(DataType, out TimeSpan)
public override TimeSpan GetHistoryStepSize(DataType dataType, out TimeSpan iterationInterval)Parameters
Returns
GetTimeFrames(SecurityId, DateTimeOffset?, DateTimeOffset?)
protected override IEnumerable<TimeSpan> GetTimeFrames(SecurityId securityId, DateTimeOffset? from, DateTimeOffset? to)Parameters
- securityIdSecurityId
- fromDateTimeOffset?
- toDateTimeOffset?
Returns
IsAllDownloadingSupported(DataType)
Is for the specified dataType all securities downloading enabled.
public override bool IsAllDownloadingSupported(DataType dataType)Parameters
- dataTypeDataType
- Data type info. 
Returns
- bool
- Check result. 
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)Parameters
- storageSettingsStorage
- Settings storage. 
OnSendInMessage(Message)
Send message.
protected override bool OnSendInMessage(Message message)Parameters
- messageMessage
- Message. 
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)Parameters
- storageSettingsStorage
- Settings storage. 
ToString()
public override string ToString()