• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ReferencePriceType类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.ib.controller.Types.ReferencePriceType的典型用法代码示例。如果您正苦于以下问题:Java ReferencePriceType类的具体用法?Java ReferencePriceType怎么用?Java ReferencePriceType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ReferencePriceType类属于com.ib.controller.Types包,在下文中一共展示了ReferencePriceType类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: NewOrder

点赞 2

import com.ib.controller.Types.ReferencePriceType; //导入依赖的package包/类
public NewOrder( Order order) {
	m_clientId = order.m_clientId;
	m_orderId = order.m_orderId;
	m_permId = order.m_permId;
	m_parentId = order.m_parentId;
	m_account = order.m_account;
	m_action = Action.valueOf( order.m_action);
	m_totalQuantity = order.m_totalQuantity;
	m_displaySize = order.m_displaySize;
	m_orderType = OrderType.get( order.m_orderType);
	m_lmtPrice = order.m_lmtPrice;
	m_auxPrice = order.m_auxPrice;
	m_tif = TimeInForce.valueOf( order.m_tif);
	m_allOrNone = order.m_allOrNone;
	m_blockOrder = order.m_blockOrder;
	m_eTradeOnly = order.m_eTradeOnly;
	m_firmQuoteOnly = order.m_firmQuoteOnly;
	m_hidden = order.m_hidden;
	m_notHeld = order.m_notHeld;
	m_optOutSmartRouting = order.m_optOutSmartRouting;
	m_outsideRth = order.m_outsideRth;
	m_sweepToFill = order.m_sweepToFill;
	m_delta = order.m_delta;
	m_discretionaryAmt = order.m_discretionaryAmt;
	m_nbboPriceCap = order.m_nbboPriceCap;
	m_percentOffset = order.m_percentOffset;
	m_startingPrice = order.m_startingPrice;
	m_stockRangeLower = order.m_stockRangeLower;
	m_stockRangeUpper = order.m_stockRangeUpper;
	m_stockRefPrice = order.m_stockRefPrice;
	m_trailingPercent = order.m_trailingPercent;
	m_trailStopPrice = order.m_trailStopPrice;
	m_minQty = order.m_minQty;
	m_goodAfterTime = order.m_goodAfterTime;
	m_goodTillDate = order.m_goodTillDate;
	m_ocaGroup = order.m_ocaGroup;
	m_orderRef = order.m_orderRef;
	m_rule80A = Rule80A.get( order.m_rule80A);
	m_ocaType = OcaType.get( order.m_ocaType);
	m_triggerMethod = TriggerMethod.get( order.m_triggerMethod);
	m_faGroup = order.m_faGroup;
	m_faMethod = Method.get( order.m_faMethod);
	m_faPercentage = order.m_faPercentage;
	m_faProfile = order.m_faProfile;
	m_volatility = order.m_volatility;
	m_volatilityType = VolatilityType.get( order.m_volatilityType);
	m_continuousUpdate = order.m_continuousUpdate == 1;
	m_referencePriceType = ReferencePriceType.get( order.m_referencePriceType);
	m_deltaNeutralOrderType = OrderType.get( order.m_deltaNeutralOrderType);
	m_deltaNeutralAuxPrice = order.m_deltaNeutralAuxPrice;
	m_deltaNeutralConId = order.m_deltaNeutralConId;
	m_scaleInitLevelSize = order.m_scaleInitLevelSize;
	m_scaleSubsLevelSize = order.m_scaleSubsLevelSize;
	m_scalePriceIncrement = order.m_scalePriceIncrement;
	m_scalePriceAdjustValue = order.m_scalePriceAdjustValue;
	m_scalePriceAdjustInterval = order.m_scalePriceAdjustInterval;
	m_scaleProfitOffset = order.m_scaleProfitOffset;
	m_scaleAutoReset = order.m_scaleAutoReset;
	m_scaleInitPosition = order.m_scaleInitPosition;
	m_scaleInitFillQty = order.m_scaleInitFillQty;
	m_scaleRandomPercent = order.m_scaleRandomPercent;
	m_hedgeType = HedgeType.get( order.m_hedgeType);
	m_hedgeParam = order.m_hedgeParam;
	m_algoStrategy = AlgoStrategy.get( order.m_algoStrategy);
	m_whatIf = order.m_whatIf;
	m_transmit = order.m_transmit;
	m_overridePercentageConstraints = order.m_overridePercentageConstraints;

	fill( m_smartComboRoutingParams, order.m_smartComboRoutingParams);
	fill( m_orderComboLegs, order.m_orderComboLegs);
	fill( m_algoParams, order.m_algoParams);
}
 

开发者ID:rterp,
项目名称:SumZeroTrading,
代码行数:73,
代码来源:NewOrder.java

示例2: referencePriceType

点赞 1

import com.ib.controller.Types.ReferencePriceType; //导入依赖的package包/类
public ReferencePriceType referencePriceType() { return m_referencePriceType; } 

开发者ID:rterp,
项目名称:SumZeroTrading,
代码行数:2,
代码来源:NewOrder.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)