Examples of BidOrderComparator


Examples of com.mcorrigal.matchingEngine.orderBook.bid.BidOrderComparator

  private PrioritisedOrderList orders;

  @Before
  public void setUp() {
    orders = new PrioritisedOrderList(new BidOrderComparator());
  }
View Full Code Here

Examples of com.mcorrigal.matchingEngine.orderBook.bid.BidOrderComparator

  private BuyOrder highPricedOrder = dummyLimitBuyForPrice("50");
  private BuyOrder lowPricedOrder = dummyLimitBuyForPrice("40");
 
  @Before
  public void setUp() {
    bidOrderComparator = new BidOrderComparator();
  }
View Full Code Here

Examples of com.mcorrigal.matchingEngine.orderBook.bid.BidOrderComparator

  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
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.