public void clear(Order ask, Order bid, double buyerCharge, double sellerPayment, int quantity) { assert ask.isAsk(); assert bid.isBid(); recordMatch(ask, bid); market.clear(ask, bid, buyerCharge, sellerPayment, quantity); }
public void clear(Order ask, Order bid, double price) { assert ask.isAsk(); assert bid.isBid(); recordMatch(ask, bid); market.clear(ask, bid, price); }