* Because an instance display either the Trades sold or bought.
* If relevant then updates the display.
*/
public void onTradeCommitted(ServiceEvent.TradeCommitted event) {
Trader trader = session.getTrader();
Trade trade = event.getPayload();
if ((trader.equals(trade.getSeller()) && _type == Ask.class)
|| (trader.equals(trade.getBuyer()) && _type == Bid.class)) {
insert(trade);
}
}