Lean  $LEAN_TAG$
QuantConnect.Brokerages.DowngradeErrorCodeToWarningBrokerageMessageHandler Class Reference

Provides an implementation of IBrokerageMessageHandler that converts specified error codes into warnings More...

Inheritance diagram for QuantConnect.Brokerages.DowngradeErrorCodeToWarningBrokerageMessageHandler:
[legend]

Public Member Functions

 DowngradeErrorCodeToWarningBrokerageMessageHandler (IBrokerageMessageHandler brokerageMessageHandler, string[] errorCodesToIgnore)
 Initializes a new instance of the DowngradeErrorCodeToWarningBrokerageMessageHandler class More...
 
void HandleMessage (BrokerageMessageEvent message)
 Handles the message More...
 
bool HandleOrder (NewBrokerageOrderNotificationEventArgs eventArgs)
 Handles a new order placed manually in the brokerage side More...
 

Detailed Description

Provides an implementation of IBrokerageMessageHandler that converts specified error codes into warnings

Definition at line 24 of file DowngradeErrorCodeToWarningBrokerageMessageHandler.cs.

Constructor & Destructor Documentation

◆ DowngradeErrorCodeToWarningBrokerageMessageHandler()

QuantConnect.Brokerages.DowngradeErrorCodeToWarningBrokerageMessageHandler.DowngradeErrorCodeToWarningBrokerageMessageHandler ( IBrokerageMessageHandler  brokerageMessageHandler,
string[]  errorCodesToIgnore 
)

Initializes a new instance of the DowngradeErrorCodeToWarningBrokerageMessageHandler class

Parameters
brokerageMessageHandlerThe brokerage message handler to be wrapped
errorCodesToIgnoreThe error codes to convert to warning messages

Definition at line 34 of file DowngradeErrorCodeToWarningBrokerageMessageHandler.cs.

Member Function Documentation

◆ HandleMessage()

void QuantConnect.Brokerages.DowngradeErrorCodeToWarningBrokerageMessageHandler.HandleMessage ( BrokerageMessageEvent  message)

Handles the message

Parameters
messageThe message to be handled

Implements QuantConnect.Brokerages.IBrokerageMessageHandler.

Definition at line 44 of file DowngradeErrorCodeToWarningBrokerageMessageHandler.cs.

◆ HandleOrder()

bool QuantConnect.Brokerages.DowngradeErrorCodeToWarningBrokerageMessageHandler.HandleOrder ( NewBrokerageOrderNotificationEventArgs  eventArgs)

Handles a new order placed manually in the brokerage side

Parameters
eventArgsThe new order event
Returns
Whether the order should be added to the transaction handler

Implements QuantConnect.Brokerages.IBrokerageMessageHandler.

Definition at line 60 of file DowngradeErrorCodeToWarningBrokerageMessageHandler.cs.


The documentation for this class was generated from the following file: