Click or drag to resize

BasketMessageAdapter Class

Adapter-aggregator that allows simultaneously to operate multiple adapters connected to different trading systems.
Inheritance Hierarchy

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public class BasketMessageAdapter : BaseLogReceiver, 
	IMessageAdapter, IMessageChannel, IDisposable, ICloneable<IMessageChannel>, 
	ICloneable, IPersistable, ILogReceiver, ILogSource

The BasketMessageAdapter type exposes the following members.

Constructors
  NameDescription
Public methodBasketMessageAdapter(IdGenerator, CandleBuilderProvider)
Initializes a new instance of the BasketMessageAdapter.
Public methodBasketMessageAdapter(IdGenerator, ISecurityMessageAdapterProvider, IPortfolioMessageAdapterProvider, StorageProcessor)
Initializes a new instance of the BasketMessageAdapter.
Top
Properties
  NameDescription
Protected propertyCanAutoStorage
Can use StorageBuffer.
Public propertyCommissionManager
The commission calculating manager.
Public propertyConnectDisconnectEventOnFirstAdapter
To call the ConnectMessage event when the first adapter connects to InnerAdapters.
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from BaseLogSource.)
Public propertyExtendedInfoStorage
Extended info ExtensionInfo storage.
Public propertyId
The unique identifier of the source.
(Inherited from BaseLogSource.)
Public propertyIgnoreExtraAdapters
Do not add extra adapters.
Public propertyInnerAdapters
Adapters with which the aggregator operates.
Public propertyIsDisposed (Inherited from Disposable.)
Public propertyIsRestoreSubscriptionOnErrorReconnect
Restore subscription on reconnect.
Public propertyIsRoot
Whether the source is the root (even if Parent is not equal to ).
(Inherited from BaseLogSource.)
Public propertyIsSecurityNewsOnly
Adapter provides news related with specified security.
Public propertyLatencyManager
Orders registration delay calculation manager.
Public propertyLogLevel
The logging level for the source.
(Inherited from BaseLogSource.)
Public propertyName
The source name.
(Inherited from BaseLogSource.)
Public propertyNativeIdStorage
Security native identifier storage.
Public propertyParent
Parental logs source.
(Inherited from BaseLogSource.)
Public propertyPnLManager
The profit-loss manager.
Public propertyPortfolioAdapterProvider
The portfolio based message adapter's provider.
Public propertySecurityAdapterProvider
The security based message adapter's provider.
Public propertySecurityMappingStorage
Security identifier mappings storage.
Public propertySlippageManager
Slippage manager.
Public propertyStorageProcessor
Storage processor.
Public propertySupportBuffer
Public propertySupportBuildingFromOrderLog
Public propertySupportCandlesCompression
Public propertySupportLookupTracking
Public propertySupportOffline
Public propertySupportOrderBookTruncate
Public propertySupportPartialDownload
Public propertySuppressReconnectingErrors
Suppress reconnecting errors.
Public propertyTransactionIdGenerator
Transaction id generator.
Public propertyUseSeparatedChannels
Use separated IMessageChannel for each adapters.
Top
Methods
  NameDescription
Public methodApplyHeartbeat
Apply on/off heartbeat mode for the specified adapter.
Public methodClone
Create a copy of BasketMessageAdapter.
Public methodDispose (Inherited from Disposable.)
Protected methodDisposeManaged
To release allocated resources.
(Overrides Disposable.DisposeManaged.)
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.)
Protected methodGetSortedAdapters
To get adapters SortedAdapters sorted by the specified priority. By default, there is no sorting.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load settings.
(Overrides BaseLogSourceLoad(SettingsStorage).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnInnerAdapterNewOutMessage
The embedded adapter event NewOutMessage handler.
Protected methodOnSendInMessage
Send message.
Protected methodOnSendOutMessage
Send outgoing message and raise NewOutMessage event.
Protected methodRaiseLog
To call the event Log.
(Inherited from BaseLogSource.)
Public methodSave
Save settings.
(Overrides BaseLogSourceSave(SettingsStorage).)
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
New message event.
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 SupportedInMessages 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 MethodAddSupportedMarketDataType
Add market data type into SupportedMarketDataTypes.
(Defined by Extensions.)
Public Extension MethodAddSupportedMessage(MessageTypeInfo)Overloaded.
Add the message type info SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodAddSupportedMessage(MessageTypes)Overloaded.
Add the message type info SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodAddSupportedMessage(MessageTypes, NullableBoolean)Overloaded.
Add the message type info SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodAddSupportedOutMessage
Add the message type info SupportedOutMessages.
(Defined by Extensions.)
Public Extension MethodAddSupportedResultMessage
Add the message type info SupportedResultMessages.
(Defined by Extensions.)
Public Extension MethodAddTransactionalSupport
Fill the SupportedInMessages 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 MethodConfigure(Window)Overloaded.
Configure connection using ConnectorWindow.
(Defined by Extensions.)
Public Extension MethodConfigure(Window, Boolean, SettingsStorage)Overloaded.
Configure connection using ConnectorWindow.
(Defined by Extensions.)
Public Extension MethodCreateOrderCondition
Create condition for order type Conditional, that supports the adapter.
(Defined by Extensions.)
Public Extension MethodCreatePortfolioChangeMessage
Initializes a new instance of the PositionChangeMessage.
(Defined by Extensions.)
Public Extension MethodCreatePositionChangeMessage
Initializes a new instance of the PositionChangeMessage.
(Defined by Extensions.)
Public Extension MethodDownloadTResult, TRequest
Download data.
(Defined by TraderHelper.)
Public Extension MethodFindAdapterTAdapter
Find adapter by the specified type.
(Defined by Extensions.)
Public Extension MethodGetBoardCode
To get the board code for the instrument class.
(Defined by TraderHelper.)
Public Extension MethodGetCandleArgsTArg
Get possible args for the specified candle type and instrument.
(Defined by Extensions.)
Public Extension MethodGetCandles
To download candles.
(Defined by TraderHelper.)
Public Extension MethodGetHistoryStepSize
Get maximum size step allowed for historical download.
(Defined by Extensions.)
Public Extension MethodGetLevel1
To get level1 market data.
(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 MethodGetOrderLog
To get order log.
(Defined by TraderHelper.)
Public Extension MethodGetSecurities
Download all securities.
(Defined by TraderHelper.)
Public Extension MethodGetTicks
To get tick data.
(Defined by TraderHelper.)
Public Extension MethodGetTimeFrames
Get possible time-frames for the specified instrument.
(Defined by Extensions.)
Public Extension MethodIsCandlesSupported
Determines whether the specified subscription request is supported by the adapter.
(Defined by Extensions.)
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 contained in SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodIsOutMessageSupported
Determines whether the specified message type is contained in SupportedOutMessages..
(Defined by Extensions.)
Public Extension MethodIsResultMessageSupported
Determines whether the specified message type is contained in SupportedResultMessages..
(Defined by Extensions.)
Public Extension MethodIsSupportSecuritiesLookupAll
Support lookup all securities.
(Defined by Extensions.)
Public Extension MethodIsSupportStopLoss
Determines whether the adapter support stop-loss orders.
(Defined by Extensions.)
Public Extension MethodIsSupportSubscriptionByPortfolio
Support portfolio subscriptions.
(Defined by Extensions.)
Public Extension MethodIsSupportTakeProfit
Determines whether the adapter support take-profit orders.
(Defined by Extensions.)
Public Extension MethodIsSupportWithdraw
Determines whether the adapter support withdraw orders.
(Defined by Extensions.)
Public Extension MethodIsTransactional
Is the specified adapter support transactions.
(Defined by Extensions.)
Public Extension MethodNearestSupportedDepth
Get the nearest supported depth for the specified.
(Defined by Extensions.)
Public Extension MethodRemoveLookupMessages
Remove lookup messages support.
(Defined by Extensions.)
Public Extension MethodRemoveMarketDataSupport
Remove from SupportedInMessages message types related to market-data.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedAllMarketDataTypes
Remove all market data types from SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedMarketDataType
Remove market data type from SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedMessage
Remove the message type from SupportedInMessages.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedOutMessage
Remove the message type from SupportedOutMessages.
(Defined by Extensions.)
Public Extension MethodRemoveSupportedResultMessage
Remove the message type from SupportedResultMessages.
(Defined by Extensions.)
Public Extension MethodRemoveTransactionalSupport
Remove from SupportedInMessages message types related to transactional.
(Defined by Extensions.)
Public Extension MethodTryGetCandlesBuildFrom
Try get suitable market-data type for candles compression.
(Defined by CandleHelper.)
Top
See Also