Lean
$LEAN_TAG$
|
Brokerage helper class to lock message stream while executing an action, for example placing an order More...
Public Member Functions | |
BrokerageConcurrentMessageHandler (Action< T > processMessages) | |
Creates a new instance More... | |
void | HandleNewMessage (T message) |
Will process or enqueue a message for later processing it More... | |
void | WithLockedStream (Action code) |
Lock the streaming processing while we're sending orders as sometimes they fill before the call returns. More... | |
Brokerage helper class to lock message stream while executing an action, for example placing an order
T | : | class |
Definition at line 26 of file BrokerageConcurrentMessageHandler.cs.
QuantConnect.Brokerages.BrokerageConcurrentMessageHandler< T >.BrokerageConcurrentMessageHandler | ( | Action< T > | processMessages | ) |
Creates a new instance
processMessages | The action to call for each new message |
Definition at line 36 of file BrokerageConcurrentMessageHandler.cs.
void QuantConnect.Brokerages.BrokerageConcurrentMessageHandler< T >.HandleNewMessage | ( | T | message | ) |
Will process or enqueue a message for later processing it
message | The new message |
Definition at line 47 of file BrokerageConcurrentMessageHandler.cs.
void QuantConnect.Brokerages.BrokerageConcurrentMessageHandler< T >.WithLockedStream | ( | Action | code | ) |
Lock the streaming processing while we're sending orders as sometimes they fill before the call returns.
Definition at line 77 of file BrokerageConcurrentMessageHandler.cs.