wanghhao
Results
2
issues of
wanghhao
private Optional tryToTrade(Order order, Order bestCounterOrder) { if (bestCounterOrder.isLimitOrder()) { LimitOrder bestCounterLimitOrder = (LimitOrder) bestCounterOrder; ItemPrice limitPrice = bestCounterLimitOrder.getLimitPrice(); if (order.crossesAt(limitPrice)) { Trade trade = createTrade(order, bestCounterOrder, limitPrice); return Optional.of(trade);...