本文整理汇总了C#中StockSharp.InteractiveBrokers.Native.IBSocket.ReadNullInt方法的典型用法代码示例。如果您正苦于以下问题:C# IBSocket.ReadNullInt方法的具体用法?C# IBSocket.ReadNullInt怎么用?C# IBSocket.ReadNullInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StockSharp.InteractiveBrokers.Native.IBSocket
的用法示例。
在下文中一共展示了IBSocket.ReadNullInt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadOpenOrder
//.........这里部分代码省略.........
var orderComboLegsCount = socket.ReadInt();
if (orderComboLegsCount > 0)
{
//order.m_orderComboLegs = new Vector(orderComboLegsCount);
for (var i = 0; i < orderComboLegsCount; ++i)
{
//var comboPrice =
socket.ReadNullDecimal();
//OrderComboLeg orderComboLeg = new OrderComboLeg(comboPrice);
//order.m_orderComboLegs.add(orderComboLeg);
}
}
}
if (version >= ServerVersions.V26)
{
var smartComboRoutingParamsCount = socket.ReadInt();
if (smartComboRoutingParamsCount > 0)
{
var @params = new List<Tuple<string, string>>();
for (var i = 0; i < smartComboRoutingParamsCount; ++i)
@params.Add(Tuple.Create(socket.ReadStr(), socket.ReadStr()));
ibCon.SmartRouting.ComboParams = @params;
}
}
if (version >= ServerVersions.V15)
{
if (version >= ServerVersions.V20)
{
ibCon.Scale.InitLevelSize = socket.ReadNullInt();
ibCon.Scale.SubsLevelSize = socket.ReadNullInt();
}
else
{
/* int notSuppScaleNumComponents = */
socket.ReadNullInt();
ibCon.Scale.InitLevelSize = socket.ReadNullInt();
}
ibCon.Scale.PriceIncrement = socket.ReadNullDecimal();
}
if (version >= ServerVersions.V28 && ibCon.Scale.PriceIncrement > 0)
{
ibCon.Scale.PriceAdjustValue = socket.ReadNullDecimal();
ibCon.Scale.PriceAdjustInterval = socket.ReadInt();
ibCon.Scale.ProfitOffset = socket.ReadNullDecimal();
ibCon.Scale.AutoReset = socket.ReadBool();
ibCon.Scale.InitPosition = socket.ReadNullInt();
ibCon.Scale.InitFillQty = socket.ReadNullInt();
ibCon.Scale.RandomPercent = socket.ReadBool();
}
if (version >= ServerVersions.V24)
socket.ReadHedge(ibCon);
if (version >= ServerVersions.V25)
ibCon.SmartRouting.OptOutSmartRouting = socket.ReadBool();
if (version >= ServerVersions.V19)
{
var portfolioName = socket.ReadStr();