LatencyManagerState

StockSharp.Algo.Latency

Default implementation of ILatencyManagerState.

实现: ILatencyManagerState

属性

LatencyCancellation : TimeSpan

The aggregate value of cancelling delay by all orders.

LatencyRegistration : TimeSpan

The aggregate value of registration delay by all orders.

方法

AddCancellation(long, DateTime)

Add pending cancellation.

transactionId
Transaction ID.
localTime
Local time.
AddLatencyCancellation(TimeSpan)

Add to cancellation latency.

latency
Latency to add.
AddLatencyRegistration(TimeSpan)

Add to registration latency.

latency
Latency to add.
AddRegistration(long, DateTime)

Add pending registration.

transactionId
Transaction ID.
localTime
Local time.
Clear()

Clears all adapter states and resets current state to Disconnected.

TryGetAndRemoveCancellation(long, DateTime) : bool

Try get and remove pending cancellation.

transactionId
Transaction ID.
localTime
Local time if found.

返回值: if found and removed.

TryGetAndRemoveRegistration(long, DateTime) : bool

Try get and remove pending registration.

transactionId
Transaction ID.
localTime
Local time if found.

返回值: if found and removed.