本文整理汇总了C#中StockSharp.InteractiveBrokers.Native.IBSocket.ReadHedge方法的典型用法代码示例。如果您正苦于以下问题:C# IBSocket.ReadHedge方法的具体用法?C# IBSocket.ReadHedge怎么用?C# IBSocket.ReadHedge使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StockSharp.InteractiveBrokers.Native.IBSocket
的用法示例。
在下文中一共展示了IBSocket.ReadHedge方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadOpenOrder
//.........这里部分代码省略.........
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();
if (!portfolioName.IsEmpty())
ibCon.Clearing.ClearingPortfolio = portfolioName;
ibCon.Clearing.Intent = socket.ReadIntent();
}
if (version >= ServerVersions.V22)
ibCon.SmartRouting.NotHeld = socket.ReadBool();
if (version >= ServerVersions.V20)
{
if (socket.ReadBool())
{
//UnderlyingComponent underComp = new UnderlyingComponent();
//underComp.ContractId =
socket.ReadInt();
//underComp.Delta =
socket.ReadDecimal();
//underComp.Price =
socket.ReadDecimal();
//contract.UnderlyingComponent = underComp;
}
}