IStopOrderManager

StockSharp.MatchingEngine

Interface for managing stop orders.

Methods

Cancel
public bool Cancel(long transactionId, StopOrderInfo info)
result = iStopOrderManager.Cancel(transactionId, info)

Cancel a stop order.

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

Returns: if the stop order was found and cancelled.

CheckPrice
public IReadOnlyList<StopOrderTrigger> CheckPrice(SecurityId securityId, decimal price, DateTime time)
result = iStopOrderManager.CheckPrice(securityId, price, time)

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

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

Returns: List of triggered stop orders with resulting orders to submit.

Clear
public void Clear()
iStopOrderManager.Clear()

Clear all stop orders.

Register
public void Register(StopOrderInfo info)
iStopOrderManager.Register(info)

Register a new stop order.

Replace
public bool Replace(long origTransactionId, StopOrderInfo newInfo)
result = iStopOrderManager.Replace(origTransactionId, newInfo)

Atomically replace an existing stop order with a new one.

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

Returns: if the old stop order was found and replaced.