Examples of OrderID


Examples of com.mcorrigal.matchingEngine.order.orderProperties.OrderId

    OrderBookSide side = orderBookSideFrom(orderBookSide);
    OrderList ordersInOrderBookSide = publishedOrderBookSideFor(side);
    assertThat(specifiedOrderIds.size(), is(ordersInOrderBookSide.size()));
   
    for (int i = 0; i < specifiedOrderIds.size(); i++) {
      OrderId expectedOrderId = OrderId.create(specifiedOrderIds.get(i).getId());
      assertThat(ordersInOrderBookSide.get(i).hasId(expectedOrderId), is(true));
    }
  }
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue26.OrderID

    }
   
    public static class OrderIdConverter extends CustomConverter<Long, OrderID> {
       
        public OrderID convert(Long source, Type<? extends OrderID> destinationType) {
            return new OrderID(source);
        }
View Full Code Here

Examples of ma.glasnost.orika.test.community.issue26.OrderID

    mapperFactory.getConverterFactory().registerConverter(new OrderIDConverter());
    MapperFacade facade = mapperFactory.getMapperFacade();
   
    OrderData data = new OrderData(1234l);
    Order order = facade.map(data, Order.class);
    Assert.assertEquals(new OrderID(1234l), order.getEntityID());
  }
View Full Code Here

Examples of org.nightlabs.jfire.trade.id.OrderID

      RecurringOrder order = recurringTrader.createRecurringOrder(trader.getMandator(), customer, orderIDPrefix, currency);

      if (segmentTypeIDs != null)
        createSegments(pm, trader, order, segmentTypeIDs);
      {
        OrderID orderID = (OrderID) JDOHelper.getObjectId(order);
        pm.evictAll();
        order = (RecurringOrder) pm.getObjectById(orderID);
      }

      pm.getFetchPlan().setMaxFetchDepth(maxFetchDepth);
View Full Code Here

Examples of quickfix.field.OrderID

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

Examples of quickfix.field.OrderID

            LOG.info("Given the requestSessionID '{}' calculated the replySessionID as '{}'", requestSessionID, replySessionID);

            String orderID = exchange.getIn().getHeader("orderID", String.class);

            OrderStatusRequest request = new OrderStatusRequest(new ClOrdID("XYZ"), new Symbol("GOOG"), new Side(Side.BUY));
            request.set(new OrderID(orderID));
            
            // Look for a reply execution report back to the requester session
            // and having the requested OrderID. This is a loose correlation but the best
            // we can do with FIX 4.2. Newer versions of FIX have an optional explicit correlation field.
            exchange.setProperty(QuickfixjProducer.CORRELATION_CRITERIA_KEY, new MessagePredicate(
View Full Code Here

Examples of quickfix.field.OrderID

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

Examples of quickfix.field.OrderID

        public void transform(Exchange exchange) throws FieldNotFound {
            String sessionID = (String) exchange.getIn().getHeader("sessionID");
            String orderID = (String) exchange.getIn().getHeader("orderID");

            OrderStatusRequest request = new OrderStatusRequest(new ClOrdID("XYZ"), new Symbol("GOOG"), new Side(Side.BUY));
            request.set(new OrderID(orderID));
            
            // Look for a reply execution report back to the requester session
            // and having the requested OrderID. This is a loose correlation but the best
            // we can do with FIX 4.2. Newer versions of FIX have an optional explicit correlation field.
            exchange.setProperty(QuickfixjProducer.CORRELATION_CRITERIA_KEY, new MessagePredicate(
View Full Code Here

Examples of quickfix.field.OrderID

            LogUtil.logThrowable(sessionID, e.getMessage(), e);
        }
    }
   
    public OrderID genOrderID() {
        return new OrderID(Integer.valueOf(++orderID).toString());
    }
View Full Code Here

Examples of quickfix.field.OrderID

        public void transform(Exchange exchange) throws FieldNotFound {
            String sessionID = (String) exchange.getIn().getHeader("sessionID");
            String orderID = (String) exchange.getIn().getHeader("orderID");

            OrderStatusRequest request = new OrderStatusRequest(new ClOrdID("XYZ"), new Symbol("GOOG"), new Side(Side.BUY));
            request.set(new OrderID(orderID));
            
            // Look for a reply execution report back to the requester session
            // and having the requested OrderID. This is a loose correlation but the best
            // we can do with FIX 4.2. Newer versions of FIX have an optional explicit correlation field.
            exchange.setProperty(QuickfixjProducer.CORRELATION_CRITERIA_KEY, new MessagePredicate(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.