Click or drag to resize

PnLMessageAdapter Class

The message adapter, automatically calculating profit-loss.
Inheritance Hierarchy
SystemObject
  CloneableIMessageChannel
    StockSharp.MessagesMessageAdapterWrapper
      StockSharp.Algo.PnLPnLMessageAdapter

Namespace:  StockSharp.Algo.PnL
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public class PnLMessageAdapter : MessageAdapterWrapper

The PnLMessageAdapter type exposes the following members.

Constructors
  NameDescription
Public methodPnLMessageAdapter
Initializes a new instance of the PnLMessageAdapter.
Top
Properties
  NameDescription
Public propertyAssociatedBoardCode
Board code for combined security.
(Inherited from MessageAdapterWrapper.)
Public propertyCategories
Message adapter categories.
(Inherited from MessageAdapterWrapper.)
Public propertyCheckTimeFrameByRequest
Check possible time-frame by request.
(Inherited from MessageAdapterWrapper.)
Public propertyCurrentTime
Current time, which will be passed to the Time.
(Inherited from MessageAdapterWrapper.)
Public propertyHeartbeatInterval
Server check interval for track the connection alive. The value is Zero turned off tracking.
(Inherited from MessageAdapterWrapper.)
Public propertyInnerAdapter
Underlying adapter.
(Inherited from MessageAdapterWrapper.)
Public propertyIsFullCandlesOnly
Translates CandleMessage as only fully filled.
(Inherited from MessageAdapterWrapper.)
Public propertyIsNativeIdentifiers
Identify security in messages by native identifier Native.
(Inherited from MessageAdapterWrapper.)
Public propertyIsNativeIdentifiersPersistable
Native identifier can be stored.
(Inherited from MessageAdapterWrapper.)
Public propertyIsSupportCandlesUpdates
Support candles subscription and live updates.
(Inherited from MessageAdapterWrapper.)
Public propertyIsSupportSecuritiesLookupAll
Support lookup all securities.
(Inherited from MessageAdapterWrapper.)
Public propertyIsSupportSubscriptionByPortfolio
Support portfolio subscriptions.
(Inherited from MessageAdapterWrapper.)
Public propertyIsSupportSubscriptionBySecurity
Support filtering subscriptions (subscribe/unsubscribe for specified security).
(Inherited from MessageAdapterWrapper.)
Public propertyIsSupportSubscriptions
Support any subscriptions (ticks, order books etc.).
(Inherited from MessageAdapterWrapper.)
Public propertyOrderCancelVolumeRequired
Volume required to cancel orders.
(Inherited from MessageAdapterWrapper.)
Public propertyOrderStatusRequired
OrderStatusMessage required to get orders and own trades.
(Inherited from MessageAdapterWrapper.)
Public propertyOwnInnerAdapter
Control InnerAdapter lifetime.
(Inherited from MessageAdapterWrapper.)
Public propertyParent
Parental logs source.
(Inherited from MessageAdapterWrapper.)
Public propertyPnLManager
The profit-loss manager.
Public propertyPortfolioLookupRequired
PortfolioLookupMessage required to get portfolios and positions.
(Inherited from MessageAdapterWrapper.)
Public propertyReConnectionSettings
Connection tracking settings IMessageAdapter with a server.
(Inherited from MessageAdapterWrapper.)
Public propertySecurityLookupRequired
SecurityLookupMessage required to get securities.
(Inherited from MessageAdapterWrapper.)
Public propertyStorageName
The storage name, associated with the adapter.
(Inherited from MessageAdapterWrapper.)
Public propertySupportedMarketDataTypes
Supported by adapter market data types.
(Inherited from MessageAdapterWrapper.)
Public propertySupportedMessages
Supported by adapter message types.
(Inherited from MessageAdapterWrapper.)
Public propertyTimeFrames
Possible time-frames.
(Inherited from MessageAdapterWrapper.)
Public propertyTransactionIdGenerator
Transaction id generator.
(Inherited from MessageAdapterWrapper.)
Top
Methods
  NameDescription
Public methodClone
Create a copy of PnLMessageAdapter.
(Overrides Cloneable.Clone.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from MessageAdapterWrapper.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetTimeFrames
Get possible time-frames for the specified instrument.
(Inherited from MessageAdapterWrapper.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load settings.
(Inherited from MessageAdapterWrapper.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnInnerAdapterNewOutMessage
Process InnerAdapter output message.
(Overrides MessageAdapterWrapperOnInnerAdapterNewOutMessage(Message).)
Protected methodRaiseNewOutMessage
To call the event NewOutMessage.
(Inherited from MessageAdapterWrapper.)
Public methodSave
Save settings.
(Inherited from MessageAdapterWrapper.)
Public methodSendInMessage
Send message.
(Overrides MessageAdapterWrapperSendInMessage(Message).)
Public methodToString
Returns a string that represents the current object.
(Inherited from MessageAdapterWrapper.)
Top
Events
  NameDescription
Public eventNewOutMessage
New message event.
(Inherited from MessageAdapterWrapper.)
Top
See Also