Click or drag to resize

MessageAdapter Class

The base adapter converts messages Message to the command of the trading system and back.
Inheritance Hierarchy

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

The MessageAdapter type exposes the following members.

Constructors
  NameDescription
Protected methodMessageAdapter
Initialize MessageAdapter.
Top
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 BaseLogSource.)
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 BaseLogSource.)
Public propertyIsDisposed (Inherited from Disposable.)
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 propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from BaseLogSource.)
Public propertyIsSupportCandlesUpdates
Support candles subscription and live updates.
Protected propertyIsSupportNativePortfolioLookup
Gets a value indicating whether the connector supports position lookup.
Protected propertyIsSupportNativeSecurityLookup
Gets a value indicating whether the connector supports security lookup.
Public propertyIsSupportSecuritiesLookupAll
Support lookup all securities.
Public propertyIsSupportStopLoss
Determines whether the adapter support stop-loss orders.
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.
Public propertyIsSupportWithdraw
Determines whether the adapter support withdraw orders.
Public propertyLogLevel
The logging level. The default is set to Inherit.
(Inherited from BaseLogSource.)
Public propertyLookupTimeOut
Securities and portfolios lookup timeout.
Public propertyName
Source name (to distinguish in log files).
(Inherited from BaseLogSource.)
Public propertyOrderCancelVolumeRequired
Volume required to cancel orders.
Public propertyOrderStatusRequired
OrderStatusMessage required to get orders and own trades.
Public propertyParent
Parent.
(Inherited from BaseLogSource.)
Public propertyPlatform
Bit process, which can run the adapter.
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 methodClone
Create a copy of MessageAdapter.
Public methodCreateOrderCondition
Create condition for order type Conditional, that supports the adapter.
Public methodCreateOrderLogMarketDepthBuilder
Create market depth builder.
Public methodDispose (Inherited from Disposable.)
Protected methodDisposeManaged (Inherited from Disposable.)
Protected methodDisposeNative (Inherited from Disposable.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Inherited from Disposable.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetTimeFrames
Get possible time-frames for the specified instrument.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsConnectionAlive
Check the connection is alive. Uses only for connected states.
Public methodLoad
Load settings.
(Overrides BaseLogSourceLoad(SettingsStorage).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnPropertyChanged
Raise PropertyChanged event.
Protected methodOnSendInMessage
Send message.
Protected methodRaiseLog
To call the event Log.
(Inherited from BaseLogSource.)
Public methodSave
Save settings.
(Overrides BaseLogSourceSave(SettingsStorage).)
Public methodSendInMessage
Send message.
Protected methodSendOutDisconnectMessage
Send to SendOutMessage(Message) disconnect message.
Protected methodSendOutError(Exception)
Initialize a new message ErrorMessage and pass it to the method SendOutMessage(Message).
Protected methodSendOutError(String)
Initialize a new message ErrorMessage and pass it to the method SendOutMessage(Message).
Protected methodSendOutMarketDataNotSupported
Initialize a new message SecurityMessage and pass it to the method SendOutMessage(Message).
Public methodSendOutMessage
Send outgoing message and raise NewOutMessage event.
Protected methodThrowIfDisposed (Inherited from Disposable.)
Public methodToString
Returns a string that represents the current object.
(Inherited from BaseLogSource.)
Top
Events
  NameDescription
Public eventLog
New debug message event.
(Inherited from BaseLogSource.)
Public eventNewOutMessage
Outgoing message event.
Top
Fields
  NameDescription
Public fieldStatic memberDefaultAssociatedBoardCode
Default value for AssociatedBoardCode.
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
Inheritance Hierarchy
SystemObject
  Disposable
    StockSharp.LoggingBaseLogSource
      StockSharp.LoggingBaseLogReceiver
        StockSharp.MessagesMessageAdapter
          StockSharp.AlgoBasketMessageAdapter
          StockSharp.Algo.TestingEmulationMessageAdapter
          StockSharp.Algo.TestingHistoryMessageAdapter
          StockSharp.AlphaVantageAlphaVantageMessageAdapter
          StockSharp.BarChartBarChartMessageAdapter
          StockSharp.BiboxBiboxMessageAdapter
          StockSharp.BinanceBinanceMessageAdapter
          StockSharp.BitbankBitbankMessageAdapter
          StockSharp.BitexbookBitexbookMessageAdapter
          StockSharp.BitfinexBitfinexMessageAdapter
          StockSharp.BithumbBithumbMessageAdapter
          StockSharp.BitMaxBitMaxMessageAdapter
          StockSharp.BitmexBitmexMessageAdapter
          StockSharp.BitStampBitStampMessageAdapter
          StockSharp.BittrexBittrexMessageAdapter
          StockSharp.BitZBitZMessageAdapter
          StockSharp.BlackwoodBlackwoodMessageAdapter
          StockSharp.BtceBtceMessageAdapter
          StockSharp.BWBWMessageAdapter
          StockSharp.CexCexMessageAdapter
          StockSharp.CoinbaseCoinbaseMessageAdapter
          StockSharp.CoinBeneCoinBeneMessageAdapter
          StockSharp.CoinCapCoinCapMessageAdapter
          StockSharp.CoincheckCoincheckMessageAdapter
          StockSharp.CoinExchangeCoinExchangeMessageAdapter
          StockSharp.CoinigyCoinigyMessageAdapter
          StockSharp.Cqg.ComCqgComMessageAdapter
          StockSharp.Cqg.ContinuumCqgContinuumMessageAdapter
          StockSharp.CryptopiaCryptopiaMessageAdapter
          StockSharp.DeribitDeribitMessageAdapter
          StockSharp.DigifinexDigifinexMessageAdapter
          StockSharp.ETradeETradeMessageAdapter
          StockSharp.ExmoExmoMessageAdapter
          StockSharp.FixFastMessageAdapter
          StockSharp.FixFixMessageAdapter
          StockSharp.FxcmFxcmMessageAdapter
          StockSharp.GdaxGdaxMessageAdapter
          StockSharp.HitBtcHitBtcMessageAdapter
          StockSharp.HuobiHuobiMessageAdapter
          StockSharp.IdaxIdaxMessageAdapter
          StockSharp.IEXIEXMessageAdapter
          StockSharp.InteractiveBrokersInteractiveBrokersMessageAdapter
          StockSharp.IQFeedIQFeedMarketDataMessageAdapter
          StockSharp.ITCHItchMessageAdapter
          StockSharp.KrakenKrakenMessageAdapter
          StockSharp.KucoinKucoinMessageAdapter
          StockSharp.LBankLBankMessageAdapter
          StockSharp.LiquiLiquiMessageAdapter
          StockSharp.LiveCoinLiveCoinMessageAdapter
          StockSharp.LMAXLmaxMessageAdapter
          StockSharp.MessagesPassThroughMessageAdapter
          StockSharp.OandaOandaMessageAdapter
          StockSharp.OkcoinOkcoinMessageAdapter
          StockSharp.OkexOkexMessageAdapter
          StockSharp.OpenECryOpenECryMessageAdapter
          StockSharp.PoloniexPoloniexMessageAdapter
          StockSharp.QuantHouseQuantFeedMessageAdapter
          StockSharp.QuoinexQuoinexMessageAdapter
          StockSharp.RithmicRithmicMessageAdapter
          StockSharp.RssRssMarketDataMessageAdapter
          StockSharp.SterlingSterlingMessageAdapter
          StockSharp.TradeOgreTradeOgreMessageAdapter
          StockSharp.TwimeTwimeMessageAdapter
          StockSharp.YobitYobitMessageAdapter
          StockSharp.ZaifZaifMessageAdapter
          StockSharp.ZBZBMessageAdapter