StopOrderManager
StockSharp.MatchingEngine
注文マネージャの実装を停止します。
メソッド
Cancel
public bool Cancel(long transactionId, StopOrderInfo info)
result = stopOrderManager.Cancel(transactionId, info)
注文をキャンセルします。
- transactionId
- ストップオーダーの取引ID。
- info
- 注文情報を取り消す。
戻り値: ストップオーダーが見つかり、キャンセルされた場合。
CheckPrice
public IReadOnlyList<StopOrderTrigger> CheckPrice(SecurityId securityId, decimal price, DateTime time)
result = stopOrderManager.CheckPrice(securityId, price, time)
指定された金融商品に対する登録停止注文に対する価格をチェックしてください。
- securityId
- 金融商品ID
- price
- 現在の市場価格。
- time
- 現行時刻
戻り値: トリガーされたストップオーダーのリストを、結果の注文を提出する。
CreateResultingOrder
public static OrderRegisterMessage CreateResultingOrder(StopOrderInfo info, DateTime time)
result = StopOrderManager.CreateResultingOrder(info, time)
Builds the order a stop places when it fires: a limit order at the price its condition asks for, resolving a percentage against the level it fired at, or a market order when it names no price at all.
- info
- The stop that fired.
- time
- When it fired.
戻り値: The order to place.
GetStopIds
public IReadOnlyList<long> GetStopIds(SecurityId securityId)
result = stopOrderManager.GetStopIds(securityId)
Get the stop orders resting on the given security.
- securityId
- Security ID.
戻り値: Transaction IDs of the stop orders registered for the security, empty when none rest on it.
Replace
public bool Replace(long origTransactionId, StopOrderInfo newInfo)
result = stopOrderManager.Replace(origTransactionId, newInfo)
既存のストップオーダーを新しいものにする。
- origTransactionId
- ストップオーダーの取引IDを交換します。
- newInfo
- 新規注文情報
戻り値: 古いストップ注文が見つかった場合、置換されます。