本文整理汇总了Python中ib.ext.Order.Order.m_clearingIntent方法的典型用法代码示例。如果您正苦于以下问题:Python Order.m_clearingIntent方法的具体用法?Python Order.m_clearingIntent怎么用?Python Order.m_clearingIntent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ib.ext.Order.Order
的用法示例。
在下文中一共展示了Order.m_clearingIntent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: processMsg
# 需要导入模块: from ib.ext.Order import Order [as 别名]
# 或者: from ib.ext.Order.Order import m_clearingIntent [as 别名]
#.........这里部分代码省略.........
if version >= 10:
order.m_parentId = self.readInt()
order.m_triggerMethod = self.readInt()
if version >= 11:
order.m_volatility = self.readDouble()
order.m_volatilityType = self.readInt()
if (version == 11):
receivedInt = self.readInt()
order.m_deltaNeutralOrderType = "NONE" if (receivedInt == 0) else "MKT"
else:
order.m_deltaNeutralOrderType = self.readStr()
order.m_deltaNeutralAuxPrice = self.readDouble()
order.m_continuousUpdate = self.readInt()
if (self.m_parent.serverVersion() == 26):
order.m_stockRangeLower = self.readDouble()
order.m_stockRangeUpper = self.readDouble()
order.m_referencePriceType = self.readInt()
if version >= 13:
order.m_trailStopPrice = self.readDouble()
if version >= 14:
order.m_basisPoints = self.readDouble()
order.m_basisPointsType = self.readInt()
contract.m_comboLegsDescrip = self.readStr()
if version >= 15:
if version >= 20:
order.m_scaleInitLevelSize = self.readIntMax()
order.m_scaleSubsLevelSize = self.readIntMax()
else:
self.readIntMax()
order.m_scaleInitLevelSize = self.readIntMax()
order.m_scalePriceIncrement = self.readDoubleMax()
if version >= 19:
order.m_clearingAccount = self.readStr()
order.m_clearingIntent = self.readStr()
if version >= 22:
order.m_notHeld = self.readBoolFromInt()
if version >= 20:
if self.readBoolFromInt():
underComp = UnderComp()
underComp.m_conId = self.readInt()
underComp.m_delta = self.readDouble()
underComp.m_price = self.readDouble()
contract.m_underComp = underComp
if version >= 21:
order.m_algoStrategy = self.readStr()
if not Util.StringIsEmpty(order.m_algoStrategy):
algoParamsCount = self.readInt()
if algoParamsCount > 0:
order.m_algoParams = list()
## for-while
i = 0
while i < algoParamsCount:
tagValue = TagValue()
tagValue.m_tag = self.readStr()
tagValue.m_value = self.readStr()
order.m_algoParams.append(tagValue)
i += 1
orderState = OrderState()
if version >= 16:
order.m_whatIf = self.readBoolFromInt()
orderState.m_status = self.readStr()
orderState.m_initMargin = self.readStr()
orderState.m_maintMargin = self.readStr()
orderState.m_equityWithLoan = self.readStr()
orderState.m_commission = self.readDoubleMax()
orderState.m_minCommission = self.readDoubleMax()