Package com.mcorrigal.matchingEngine.order.interfaces

Examples of com.mcorrigal.matchingEngine.order.interfaces.OrderList


  }
 
  @Then("^the (" + FREE_TEXT + ") order book side has rested the orders in the following order:$")
  public void ordersListedOnOrderBookSide(String orderBookSide, List<IdList> specifiedOrderIds) throws Exception {
    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


  private OrderBook orderBook;
  private MatchingEngine matchingEngine;
 
  public RealMatchingEngine() {
    OrderList bids = new PrioritisedOrderList(new BidOrderComparator());
    OrderList asks = new PrioritisedOrderList(new AskOrderComparator());
    this.orderBook = OrderBookFactory.newInstance(bids, asks);
    matchingEngine = new MatchingEngine(orderBook);
  }
View Full Code Here

TOP

Related Classes of com.mcorrigal.matchingEngine.order.interfaces.OrderList

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.