本文整理汇总了Java中com.ib.client.Order.modelCode方法的典型用法代码示例。如果您正苦于以下问题:Java Order.modelCode方法的具体用法?Java Order.modelCode怎么用?Java Order.modelCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ib.client.Order
的用法示例。
在下文中一共展示了Order.modelCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueAt
import com.ib.client.Order; //导入方法依赖的package包/类
@Override public Object getValueAt(int row, int col) {
OrderRow fullOrder = m_orders.get( row);
Order order = fullOrder.m_order;
switch( col) {
case 0: return order.permId();
case 1: return order.clientId();
case 2: return order.orderId();
case 3: return order.account();
case 4: return order.modelCode();
case 5: return order.action();
case 6: return order.totalQuantity();
case 7: return fullOrder.m_contract.description();
case 8: return fullOrder.m_state.status();
default: return null;
}
}
示例2: copyExtendedOrderDetails
import com.ib.client.Order; //导入方法依赖的package包/类
private static void copyExtendedOrderDetails( Order destOrder, Order srcOrder) {
destOrder.tif(srcOrder.getTif());
destOrder.activeStartTime(srcOrder.activeStartTime());
destOrder.activeStopTime(srcOrder.activeStopTime());
destOrder.ocaGroup(srcOrder.ocaGroup());
destOrder.ocaType(srcOrder.getOcaType());
destOrder.openClose(srcOrder.openClose());
destOrder.origin(srcOrder.origin());
destOrder.orderRef(srcOrder.orderRef());
destOrder.transmit(srcOrder.transmit());
destOrder.parentId(srcOrder.parentId());
destOrder.blockOrder(srcOrder.blockOrder());
destOrder.sweepToFill(srcOrder.sweepToFill());
destOrder.displaySize(srcOrder.displaySize());
destOrder.triggerMethod(srcOrder.getTriggerMethod());
destOrder.outsideRth(srcOrder.outsideRth());
destOrder.hidden(srcOrder.hidden());
destOrder.discretionaryAmt(srcOrder.discretionaryAmt());
destOrder.goodAfterTime(srcOrder.goodAfterTime());
destOrder.shortSaleSlot(srcOrder.shortSaleSlot());
destOrder.designatedLocation(srcOrder.designatedLocation());
destOrder.exemptCode(srcOrder.exemptCode());
destOrder.ocaType(srcOrder.getOcaType());
destOrder.rule80A(srcOrder.getRule80A());
destOrder.allOrNone(srcOrder.allOrNone());
destOrder.minQty(srcOrder.minQty());
destOrder.percentOffset(srcOrder.percentOffset());
destOrder.eTradeOnly(srcOrder.eTradeOnly());
destOrder.firmQuoteOnly(srcOrder.firmQuoteOnly());
destOrder.nbboPriceCap(srcOrder.nbboPriceCap());
destOrder.optOutSmartRouting(srcOrder.optOutSmartRouting());
destOrder.auctionStrategy(srcOrder.auctionStrategy());
destOrder.startingPrice(srcOrder.startingPrice());
destOrder.stockRefPrice(srcOrder.stockRefPrice());
destOrder.delta(srcOrder.delta());
destOrder.stockRangeLower(srcOrder.stockRangeLower());
destOrder.stockRangeUpper(srcOrder.stockRangeUpper());
destOrder.overridePercentageConstraints(srcOrder.overridePercentageConstraints());
destOrder.volatility(srcOrder.volatility());
destOrder.volatilityType(srcOrder.getVolatilityType());
destOrder.deltaNeutralOrderType(srcOrder.getDeltaNeutralOrderType());
destOrder.deltaNeutralAuxPrice(srcOrder.deltaNeutralAuxPrice());
destOrder.deltaNeutralConId(srcOrder.deltaNeutralConId());
destOrder.deltaNeutralSettlingFirm(srcOrder.deltaNeutralSettlingFirm());
destOrder.deltaNeutralClearingAccount(srcOrder.deltaNeutralClearingAccount());
destOrder.deltaNeutralClearingIntent(srcOrder.deltaNeutralClearingIntent());
destOrder.deltaNeutralOpenClose(srcOrder.deltaNeutralOpenClose());
destOrder.deltaNeutralShortSale(srcOrder.deltaNeutralShortSale());
destOrder.deltaNeutralShortSaleSlot(srcOrder.deltaNeutralShortSaleSlot());
destOrder.deltaNeutralDesignatedLocation(srcOrder.deltaNeutralDesignatedLocation());
destOrder.continuousUpdate(srcOrder.continuousUpdate());
destOrder.referencePriceType(srcOrder.getReferencePriceType());
destOrder.trailStopPrice(srcOrder.trailStopPrice());
destOrder.trailingPercent(srcOrder.trailingPercent());
destOrder.scaleInitLevelSize(srcOrder.scaleInitLevelSize());
destOrder.scaleSubsLevelSize(srcOrder.scaleSubsLevelSize());
destOrder.scalePriceIncrement(srcOrder.scalePriceIncrement());
destOrder.scalePriceAdjustValue(srcOrder.scalePriceAdjustValue());
destOrder.scalePriceAdjustInterval(srcOrder.scalePriceAdjustInterval());
destOrder.scaleProfitOffset(srcOrder.scaleProfitOffset());
destOrder.scaleAutoReset(srcOrder.scaleAutoReset());
destOrder.scaleInitPosition(srcOrder.scaleInitPosition());
destOrder.scaleInitFillQty(srcOrder.scaleInitFillQty());
destOrder.scaleRandomPercent(srcOrder.scaleRandomPercent());
destOrder.scaleTable(srcOrder.scaleTable());
destOrder.hedgeType(srcOrder.getHedgeType());
destOrder.hedgeParam(srcOrder.hedgeParam());
destOrder.account(srcOrder.account());
destOrder.modelCode(srcOrder.modelCode());
destOrder.settlingFirm(srcOrder.settlingFirm());
destOrder.clearingAccount(srcOrder.clearingAccount());
destOrder.clearingIntent(srcOrder.clearingIntent());
destOrder.solicited(srcOrder.solicited());
destOrder.randomizePrice(srcOrder.randomizePrice());
destOrder.randomizeSize(srcOrder.randomizeSize());
}