ILatencyManager
StockSharp.Algo.Latency
The interface of the order registration delay calculation manager.
Implements: IAsyncPersistable
Properties
LatencyCancellation
public TimeSpan LatencyCancellation { get; }
value = iLatencyManager.LatencyCancellation
The aggregate value of cancelling delay by all orders.
LatencyRegistration
public TimeSpan LatencyRegistration { get; }
value = iLatencyManager.LatencyRegistration
The aggregate value of registration delay by all orders.
Methods
CloneAsync
public ValueTask<ILatencyManager> CloneAsync(CancellationToken cancellationToken)
result = iLatencyManager.CloneAsync(cancellationToken)
Create a copy of the manager.
- cancellationToken
- CancellationToken
Returns: Copy.
ProcessMessage
public TimeSpan? ProcessMessage(Message message)
result = iLatencyManager.ProcessMessage(message)
To process the message for transaction delay calculation. Messages of OrderRegisterMessage, OrderReplaceMessage, OrderCancelMessage and ExecutionMessage types are accepted.
- message
- Message.
Returns: The transaction delay. If it is impossible to calculate delay, will be returned.