StopOrderManager

StockSharp.MatchingEngine

Stop order manager implementation.

实现: IStopOrderManager

方法

Cancel(long, StopOrderInfo) : bool

Cancel a stop order.

transactionId
Transaction ID of the stop order.
info
Cancelled stop order info.

返回值: if the stop order was found and cancelled.

CheckPrice(SecurityId, decimal, DateTime) : IReadOnlyList<StopOrderTrigger>

Check price against all registered stop orders for the given security.

securityId
Security ID.
price
Current market price.
time
Current time.

返回值: List of triggered stop orders with resulting orders to submit.

Clear()

Clears all adapter states and resets current state to Disconnected.

Register(StopOrderInfo)

Register a new stop order.

Replace(long, StopOrderInfo) : bool

Atomically replace an existing stop order with a new one.

origTransactionId
Transaction ID of the stop order to replace.
newInfo
New stop order info.

返回值: if the old stop order was found and replaced.