/* Update changed comonents */
market.clearChanges();
market.setChange(Component.BOOK_COMBINED);
final DefBookEntry topAskPrice = new DefBookEntry(
MODIFY, Book.Side.ASK,
Book.Type.DEFAULT, ENTRY_TOP, price, top.side(Book.Side.ASK).sizeValue());
applyTop(topAskPrice, time, market);
return null;
case ASK_LAST_SIZE:
/* Update changed comonents */
market.clearChanges();
market.setChange(Component.BOOK_COMBINED);
final DefBookEntry topAskSize = new DefBookEntry(
MODIFY, Book.Side.ASK,
Book.Type.DEFAULT, ENTRY_TOP, top.side(Book.Side.ASK).priceValue(), size);
applyTop(topAskSize, time, market);
return null;
case BID_LAST: // NEW
log.debug("Mapper saw BID_LAST - Price=" + price.toString() +
" " + message.getSession() + " " + message.getTradeDay().toString() + " "
+ message.getInstrument().symbol());
case BID_LAST_PRICE:
/* Update changed comonents */
market.clearChanges();
market.setChange(Component.BOOK_COMBINED);
final DefBookEntry topBidPrice = new DefBookEntry(
MODIFY, Book.Side.BID,
Book.Type.DEFAULT, ENTRY_TOP, price, top.side(Book.Side.BID).sizeValue());
applyTop(topBidPrice, time, market);
return null;
case BID_LAST_SIZE:
/* Update changed comonents */
market.clearChanges();
market.setChange(Component.BOOK_COMBINED);
final DefBookEntry topBidSize = new DefBookEntry(
MODIFY, Book.Side.BID,
Book.Type.DEFAULT, ENTRY_TOP, top.side(Book.Side.BID).priceValue(), size);
applyTop(topBidSize, time, market);
return null;