Table of Contents

Class LatencyManager

Namespace
StockSharp.Algo.Latency
Assembly
StockSharp.Algo.dll

Orders registration delay calculation manager.

public class LatencyManager : ILatencyManager, IPersistable
Inheritance
LatencyManager
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

LatencyManager()

Initializes a new instance of the LatencyManager.

public LatencyManager()

Properties

LatencyCancellation

The aggregate value of cancelling delay by all orders.

public virtual TimeSpan LatencyCancellation { get; }

Property Value

TimeSpan

LatencyRegistration

The aggregate value of registration delay by all orders.

public virtual TimeSpan LatencyRegistration { get; }

Property Value

TimeSpan

Methods

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.

ProcessMessage(Message)

To process the message for transaction delay calculation. Messages of OrderRegisterMessage, OrderReplaceMessage, OrderCancelMessage and ExecutionMessage types are accepted.

public TimeSpan? ProcessMessage(Message message)

Parameters

message Message

Message.

Returns

TimeSpan?

The transaction delay. If it is impossible to calculate delay, null will be returned.

Reset()

To zero calculations.

public virtual void Reset()

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.