IPositionModifyAlgo
StockSharp.Algo.PositionManagement
位置変更アルゴリズムのインターフェイス(図から切り離される)。
実装: IDisposable
プロパティ
RemainingVolume
public decimal RemainingVolume { get; }
value = iPositionModifyAlgo.RemainingVolume
実行するボリュームを回復します。
メソッド
GetNextAction
public PositionModifyAction GetNextAction()
result = iPositionModifyAlgo.GetNextAction()
次のアクションを取ろう。
OnOrderCanceled
public void OnOrderCanceled(decimal matchedVolume)
iPositionModifyAlgo.OnOrderCanceled(matchedVolume)
注文がキャンセルされたことを通知します。
- matchedVolume
- キャンセル前にマッチしたボリューム。
OnOrderMatched
public void OnOrderMatched(decimal matchedVolume)
iPositionModifyAlgo.OnOrderMatched(matchedVolume)
注文が一致したことを通知します(十分に満たされました)。
- matchedVolume
- Volume that traded since the previous notification for this order: a caller reporting every partial fill passes the increment, one reporting only the end passes the whole traded volume. The same volume is never reported twice.
UpdateMarketData
public void UpdateMarketData(DateTime time, decimal? price, decimal? volume)
iPositionModifyAlgo.UpdateMarketData(time, price, volume)
市場データを更新します。
- time
- 現行時刻
- price
- 最後の取引価格。
- volume
- 最後の取引量。
UpdateOrderBook
public void UpdateOrderBook(IOrderBookMessage depth)
iPositionModifyAlgo.UpdateOrderBook(depth)
注文書データを更新します。
- depth
- 注文書。