Package com.quantcomponents.algo

Examples of com.quantcomponents.algo.IOrder


    int ocaGroupId = nextOcaGroupId();
    OrderBean parentOrderBean = OrderBean.copyOf(parent);
    parentOrderBean.setId(Integer.toString(parentInternalId));
    currentOrders.add(new OrderInfo(parentOrderBean, parentInternalId, null, null));
    for (int i = 0; i < children.length; i++) {
      IOrder child = children[i];
      OrderBean childOrderBean = OrderBean.copyOf(child);
      int childId = nextInternalId();
      childOrderBean.setId(Integer.toString(childId));
      ids[i + 1] = Integer.toString(childId);
      currentOrders.add(new OrderInfo(childOrderBean, childId, ocaGroupId, parentInternalId));
View Full Code Here


      }
     
      @Override
      public void execDetails(int reqId, Contract iBContract, Execution execution) {
        if (reqId == getPendingReqId()) {
          IOrder order = sentOrders.get(execution.m_orderId);
          trades.add(TradeBean.copyOf(new IBTradeInfo(execution, order)));
        }
      }
     
      @Override
View Full Code Here

TOP

Related Classes of com.quantcomponents.algo.IOrder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.