Table of Contents

Class RiskMessageAdapter

Namespace
StockSharp.Algo.Risk
Assembly
StockSharp.Algo.dll

The message adapter, automatically controlling risk rules.

public class RiskMessageAdapter : MessageAdapterWrapper, IMessageAdapterWrapper, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable
Inheritance
RiskMessageAdapter
Implements
ICloneable<IMessageChannel>
IPersistable
Inherited Members
Extension Methods

Constructors

RiskMessageAdapter(IMessageAdapter)

Initializes a new instance of the RiskMessageAdapter.

public RiskMessageAdapter(IMessageAdapter innerAdapter)

Parameters

innerAdapter IMessageAdapter

The adapter, to which messages will be directed.

Properties

RiskManager

Risk control manager.

public IRiskManager RiskManager { get; set; }

Property Value

IRiskManager

Methods

Clone()

Create a copy of RiskMessageAdapter.

public override IMessageChannel Clone()

Returns

IMessageChannel

Copy.

OnInnerAdapterNewOutMessage(Message)

Process InnerAdapter output message.

protected override void OnInnerAdapterNewOutMessage(Message message)

Parameters

message Message

The message.

OnSendInMessage(Message)

Send message.

protected override bool OnSendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.

SendInMessage(Message)

Send message.

public override bool SendInMessage(Message message)

Parameters

message Message

Message.

Returns

bool

true if the specified message was processed successfully, otherwise, false.