EPAM B2BITS CME MDP Handler C++
6.2.1
|
Price precision extension changes. More...
Price precision extension changes.
Price precision extension from CME introduces new prices with up to 9 decimals.
Changes in MDP3 schema impacts only on low level messaging API.
The change is not backward compatible, new messages with 9-decimals prices has been introduced in addition to old 7-decimals.
The new price format will be sent for the entire channel, till Nov 18 2018 there will exist both channels with old prices and channels with new prices. After that all channels will be switched to new prices format.
To reflect those changes in code new message structs have been introduced:
See some examples below:
B2BITS header:
Client application:
Without modifications existing listener would work as listener for new prices channel.
If compiled with defined USE_MDP_PRICE_PRECISION_7 - as listener for old preices channel
If application requires to handle both types of channels listener should override both callbacks :
See also Tag-Value interface which allows to use single onIncrementMessage callback for all incremental messages