Package com.activequant.trading

Examples of com.activequant.trading.IOrderTracker


        VirtualOrderTracker tracker = new VirtualOrderTracker(limitOrder);
        return tracker;
    }

    public IOrderTracker getOrderTracker(Order order) {
        IOrderTracker tracker = orderTrackers.get(order.getOrderId());
        return tracker;
    }
View Full Code Here


    }

    public void execution(Order order, double price, double quantity) {
        if (order.getOrderId() == null)
            return;
        IOrderTracker trck = getOrderTracker(order);
        if (trck == null)
            return;
        // can only handle our own virtual trackers.
        if (trck instanceof VirtualOrderTracker) {
            OrderFillEvent ofe = new OrderFillEvent();
View Full Code Here

 
  public void handle(StreamEvent streamEvent){
    if(Math.random()<0.05)
    {
      try {
        IOrderTracker orderTracker = exchange.prepareOrder(new LimitOrder());
        orderTracker.submit();
      } catch (UnsupportedOrderType e) {
        e.printStackTrace();
      } catch (IncompleteOrderInstructions e) {
        e.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of com.activequant.trading.IOrderTracker

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.