Click or drag to resize

IMessageAdapter Interface

Base message adapter interface which convert messages Message to native commands and back.

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public interface IMessageAdapter : IMessageChannel, 
	IDisposable, ICloneable<IMessageChannel>, ICloneable, IPersistable, 
	ILogReceiver, ILogSource, IMessageAdapterExtension

The IMessageAdapter type exposes the following members.

Properties
  NameDescription
Public propertyAssociatedBoardCode
Board code for combined security.
Public propertyCategories
Message adapter categories.
Public propertyCheckTimeFrameByRequest
Check possible time-frame by request.
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from ILogSource.)
Public propertyHeartbeatInterval
Server check interval for track the connection alive. The value is Zero turned off tracking.
Public propertyId
The unique identifier of the source.
(Inherited from ILogSource.)
Public propertyIsFullCandlesOnly
Translates CandleMessage as only fully filled.
Public propertyIsNativeIdentifiers
Identify security in messages by native identifier Native.
Public propertyIsNativeIdentifiersPersistable
Native identifier can be stored.
Public propertyIsOpened
Is channel opened.
(Inherited from IMessageChannel.)
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from ILogSource.)
Public propertyIsSupportCandlesUpdates
Support candles subscription and live updates.
Public propertyIsSupportSecuritiesLookupAll
Support lookup all securities.
Public propertyIsSupportStopLoss
Determines whether the adapter support stop-loss orders.
(Inherited from IMessageAdapterExtension.)
Public propertyIsSupportSubscriptionByPortfolio
Support portfolio subscriptions.
Public propertyIsSupportSubscriptionBySecurity
Support filtering subscriptions (subscribe/unsubscribe for specified security).
Public propertyIsSupportSubscriptions
Support any subscriptions (ticks, order books etc.).
Public propertyIsSupportTakeProfit
Determines whether the adapter support take-profit orders.
(Inherited from IMessageAdapterExtension.)
Public propertyIsSupportWithdraw
Determines whether the adapter support withdraw orders.
(Inherited from IMessageAdapterExtension.)
Public propertyLogLevel
The logging level for the source.
(Inherited from ILogSource.)
Public propertyName
The source name.
(Inherited from ILogSource.)
Public propertyOrderCancelVolumeRequired
Volume required to cancel orders.
Public propertyOrderStatusRequired
OrderStatusMessage required to get orders and own trades.
Public propertyParent
Parental logs source.
(Inherited from ILogSource.)
Public propertyPortfolioLookupRequired
PortfolioLookupMessage required to get portfolios and positions.
Public propertyReConnectionSettings
Connection tracking settings IMessageAdapter with a server.
Public propertySecurityClassInfo
Description of the class of securities, depending on which will be marked in the SecurityType and BoardCode.
Public propertySecurityExtendedFields
Names of extended security fields in SecurityMessage.
Public propertySecurityLookupRequired
SecurityLookupMessage required to get securities.
Public propertyStorageName
The storage name, associated with the adapter.
Public propertySupportedMarketDataTypes
Supported by adapter market data types.
Public propertySupportedMessages
Supported by adapter message types.
Public propertyTimeFrames
Possible time-frames.
Public propertyTransactionIdGenerator
Transaction id generator.
Top
Methods
  NameDescription
Public methodAddLog
To record a message to the log.
(Inherited from ILogReceiver.)
Public methodClone (Inherited from ICloneableIMessageChannel.)
Public methodClose
Close channel.
(Inherited from IMessageChannel.)
Public methodCreateOrderCondition
Create condition for order type Conditional, that supports the adapter.
Public methodCreateOrderLogMarketDepthBuilder
Create market depth builder.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetTimeFrames
Get possible time-frames for the specified instrument.
Public methodIsConnectionAlive
Check the connection is alive. Uses only for connected states.
Public methodLoad (Inherited from IPersistable.)
Public methodOpen
Open channel.
(Inherited from IMessageChannel.)
Public methodSave (Inherited from IPersistable.)
Public methodSendInMessage
Send message.
(Inherited from IMessageChannel.)
Top
Events
  NameDescription
Public eventLog
New debug message event.
(Inherited from ILogSource.)
Public eventNewOutMessage
New message event.
(Inherited from IMessageChannel.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddDebugLog
To record a debug message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(FuncString)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(Exception, String)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddErrorLog(String, Object)Overloaded.
To record an error to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(FuncString)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddInfoLog(String, Object)Overloaded.
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddLog
To record a message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddMarketDataSupport
Fill the SupportedMessages message types related to market-data.
(Defined by Extensions.)
Public Extension MethodAddOrderErrorLog
Write order error to the log.
(Defined by TraderHelper.)
Public Extension MethodAddOrderInfoLog
Write order info to the log.
(Defined by TraderHelper.)
Public Extension MethodAddSupportedAllMarketDataTypes
Add all market data types into SupportedMarketDataTypes.
(Defined by Extensions.)
Public Extension MethodAddSupportedMarketDataType
Add market data type into SupportedMarketDataTypes.
(Defined by Extensions.)
Public Extension MethodAddSupportedMessage
Add the message type info SupportedMessages.
(Defined by Extensions.)
Public Extension MethodAddTransactionalSupport
Fill the SupportedMessages message types related to transactional.
(Defined by Extensions.)
Public Extension MethodAddVerboseLog
To record a verbose message to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(FuncString)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodAddWarningLog(String, Object)Overloaded.
To record a warning to the log.
(Defined by LoggingHelper.)
Public Extension MethodCreatePortfolioChangeMessage
Initializes a new instance of the PortfolioChangeMessage.
(Defined by Extensions.)
Public Extension MethodCreatePositionChangeMessage
Initializes a new instance of the PositionChangeMessage.
(Defined by Extensions.)
Public Extension MethodGetBoardCode
To get the board code for the instrument class.
(Defined by TraderHelper.)
Public Extension MethodGetLogLevel
Get LogLevel for the source. If the value is equal to Inherit, then parental source level is taken.
(Defined by LoggingHelper.)
Public Extension MethodIsMarketData
Is the specified adapter support market-data.
(Defined by Extensions.)
Public Extension MethodIsMarketDataTypeSupported
Determines whether the specified market-data type is supported by the adapter.
(Defined by Extensions.)
Public Extension MethodIsMessageSupported
Determines whether the specified message type is supported by the adapter.
(Defined by Extensions.)
Public Extension MethodIsTransactional
Is the specified adapter support transactions.
(Defined by Extensions.)
Public Extension MethodRemoveMarketDataSupport
Remove from SupportedMessages message types related to market-data.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedAllMarketDataTypes
Remove all market data types from SupportedMessages.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedMarketDataType
Remove market data type from SupportedMessages.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedMessage
Remove the message type from SupportedMessages.
(Defined by Extensions.)
Public Extension MethodRemoveTransactionalSupport
Remove from SupportedMessages message types related to transactional.
(Defined by Extensions.)
Top
See Also