package org.jvirtanen.parity.top;

/**
 * <code>MarketListener</code> is the interface for outbound events from the
 * order book reconstruction.
 */
public interface MarketListener {

    /**
     * An event indicating that the best bid and offer (BBO) has changed.
     *
     * @param instrument the instrument
     * @param bidPrice the bid price or zero if there are no bids
     * @param bidSize the bid size or zero if there are no bids
     * @param askPrice the ask price or zero if there are no asks
     * @param askSize the ask size or zero if there are no asks
     */
    void bbo(long instrument, long bidPrice, long bidSize, long askPrice, long askSize);

    /**
     * An event indicating that a trade has taken place.
     *
     * @param instrument the instrument
     * @param side the side of the resting order
     * @param price the trade price
     * @param size the trade size
     */
    void trade(long instrument, Side side, long price, long size);

}

@@ -39,40 +39,9 @@
 %0A * 
-%3Ccode%3EMarketListener%3C/code%3E is t
+T
 he i
@@ -77,19 +77,16 @@
 from the
-%0A *
  order b

Tweak documentation for market listener in order book reconstruction