Package com.quantcomponents.algo

Examples of com.quantcomponents.algo.OrderPoint


  @Override
  public String sendOrder(IOrder order) throws ConnectException, RequestFailedException {
    String orderId = executionService.sendOrder(order);
    orderSent(orderId);
    if (outputSeries != null) {
      outputSeries.insertFromTail(new OrderPoint(getCurrentTime(), order));
    }
    return orderId;
  }
View Full Code Here


  @Override
  public String[] sendBracketOrders(IOrder parent, IOrder[] children) throws ConnectException, RequestFailedException {
    String[] returnValue = executionService.sendBracketOrders(parent, children);
    if (outputSeries != null) {
      Date orderDate = getCurrentTime();
      outputSeries.insertFromTail(new OrderPoint(orderDate, parent));
      for (IOrder child : children) {
        outputSeries.insertFromTail(new OrderPoint(orderDate, child));
      }
    }
    for (String orderId : returnValue) {
      orderSent(orderId);
    }
View Full Code Here

TOP

Related Classes of com.quantcomponents.algo.OrderPoint

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.