#include <OrderBookBundleUpdateListener.h>
Public Member Functions | |
virtual void | onOrderBookBundleUpdated (const OrderBook &book)=0 |
Protected Member Functions | |
virtual | ~OrderBookBundleUpdateListener () |
Defines the interface through which the Handler notifies subscribers about detected changes in books after bundle of update messages.
Definition at line 33 of file OrderBookBundleUpdateListener.h.
|
inlineprotectedvirtual |
Definition at line 57 of file OrderBookBundleUpdateListener.h.
|
pure virtual |
Implement this member to get notified about changes in particular book after bundle of update messages.
Message bundle is specifically added so that customers can process messages resulted from partial fill differently if they want to. Currently, when a resting order is partially filled, a new order is created for the remaining quantity using a new ID (though priority and entry timestamp remain the same). Client gets a trade message and add/modify order message. Instead of treating them independently, which would remove the whole quantity of the order (because of the trade) first and then add the remaining quantity back, some customers prefer to process them in one transaction.
This is a workaround message that might not be needed in future releases. And not all customers care about it, depending on the specific applications. You can ignore the message if it is applicable for your application.
book | is a 'up-to-date' book associated with given market. |