ISlippageManagerState

StockSharp.Algo.Slippage

State storage for SlippageManager.

属性

Slippage
public decimal Slippage { get; }
value = iSlippageManagerState.Slippage

累计漏出总数。

方法

AddPlannedPrice
public void AddPlannedPrice(long transactionId, Sides side, decimal price)
iSlippageManagerState.AddPlannedPrice(transactionId, side, price)

将计划执行价存于订单中

transactionId
订购交易ID。
side
秩序一边.
price
计划价格。
AddSlippage
public void AddSlippage(decimal amount)
iSlippageManagerState.AddSlippage(amount)

添加到累积的后退 。

amount
拟加额.
Clear
public void Clear()
iSlippageManagerState.Clear()

清净一切州.

RemovePlannedPrice
public void RemovePlannedPrice(long transactionId)
iSlippageManagerState.RemovePlannedPrice(transactionId)

取消订单的计划价格 。

transactionId
订购交易ID。
TryGetBestPrice
public bool TryGetBestPrice(SecurityId securityId, Sides side, decimal price)
result = iSlippageManagerState.TryGetBestPrice(securityId, side, price)

买点最好的价钱

securityId
金融工具标识。
side
订单方( Buy return ask, sell return board).
price
找到最好价钱

返回值: 如果找到价格,则不为零。

TryGetPlannedPrice
public bool TryGetPlannedPrice(long transactionId, Sides side, decimal price)
result = iSlippageManagerState.TryGetPlannedPrice(transactionId, side, price)

试着不删掉就得到计划的价格

transactionId
订购交易ID。
side
找到后请按顺序侧.
price
找到时计划价格。

返回值: 如果找到的话。

UpdateBestPrices
public void UpdateBestPrices(SecurityId securityId, decimal? bidPrice, decimal? askPrice, DateTime time)
iSlippageManagerState.UpdateBestPrices(securityId, bidPrice, askPrice, time)

更新金融工具的最佳出价/任务价格。

securityId
金融工具标识。
bidPrice
最佳出价(以不计为有效).
askPrice
最佳问价( 以保留存在为单位的无效) 。
time
市场数据时间。 如果同时流出第1级和订单簿, 价格只有在时间增加时才会更新 。