本文整理汇总了C#中StockSharp.InteractiveBrokers.Native.IBSocket.ReadVolatilityType方法的典型用法代码示例。如果您正苦于以下问题:C# IBSocket.ReadVolatilityType方法的具体用法?C# IBSocket.ReadVolatilityType怎么用?C# IBSocket.ReadVolatilityType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StockSharp.InteractiveBrokers.Native.IBSocket
的用法示例。
在下文中一共展示了IBSocket.ReadVolatilityType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadOpenOrder
//.........这里部分代码省略.........
ibCon.StartingPrice = socket.ReadDecimal();
ibCon.StockRefPrice = socket.ReadDecimal();
ibCon.Delta = socket.ReadDecimal();
ibCon.StockRangeLower = socket.ReadDecimal();
ibCon.StockRangeUpper = socket.ReadDecimal();
visibleVolume = socket.ReadInt();
if (version < ServerVersions.V18)
{
// will never happen
/* order.m_rthOnly = */
socket.ReadBool();
}
ibCon.BlockOrder = socket.ReadBool();
ibCon.SweepToFill = socket.ReadBool();
ibCon.AllOrNone = socket.ReadBool();
ibCon.MinVolume = socket.ReadInt();
ibCon.Oca.Type = (IBOrderCondition.OcaTypes)socket.ReadInt();
ibCon.SmartRouting.ETradeOnly = socket.ReadBool();
ibCon.SmartRouting.FirmQuoteOnly = socket.ReadBool();
ibCon.SmartRouting.NbboPriceCap = socket.ReadDecimal();
}
if (version >= ServerVersions.V10)
{
ibCon.ParentId = socket.ReadInt();
ibCon.TriggerMethod = (IBOrderCondition.TriggerMethods)socket.ReadInt();
}
if (version >= ServerVersions.V11)
{
ibCon.Volatility.Volatility = socket.ReadDecimal();
ibCon.Volatility.VolatilityTimeFrame = socket.ReadVolatilityType();
if (version == ServerVersions.V11)
{
if (!socket.ReadBool())
ibCon.Volatility.ExtendedOrderType = IBOrderCondition.ExtendedOrderTypes.Empty;
else
ibCon.Volatility.OrderType = OrderTypes.Market;
}
else
{
OrderTypes volOrdertype;
IBOrderCondition.ExtendedOrderTypes? volExtendedType;
socket.ReadOrderType(out volOrdertype, out volExtendedType);
ibCon.Volatility.OrderType = volOrdertype;
ibCon.Volatility.ExtendedOrderType = volExtendedType;
ibCon.Volatility.StopPrice = socket.ReadDecimal();
if (volExtendedType != IBOrderCondition.ExtendedOrderTypes.Empty)
{
if (version >= ServerVersions.V27)
{
ibCon.Volatility.ConId = socket.ReadInt();
ibCon.Volatility.SettlingFirm = socket.ReadStr();
var portfolioName = socket.ReadStr();
if (!portfolioName.IsEmpty())
ibCon.Volatility.ClearingPortfolio = portfolioName;
ibCon.Volatility.ClearingIntent = socket.ReadStr();
}