39 throw std::runtime_error
41 "Threshold for tracking best bids " 42 "or offers can't be a negative value. " 89 threshold_ = threshold;
104 ONIXS_CMEMDH_EXPORTED
149 const Order& previous,
150 const Order& current)
const 164 ONIXS_CMEMDH_EXPORTED
178 toStr(str, tracking);
258 ONIXS_CMEMDH_EXPORTED
272 toStr(str, tracking);
295 return numberOfOrders_;
301 return numberOfOrders_;
308 ImpliedBboTracking::enabled()
321 ImpliedBboTracking::exceeded(previous, current)
335 ONIXS_CMEMDH_EXPORTED
349 toStr(str, tracking);
366 BboTracking bboTracking_;
429 Depth defaultDepth = 0)
431 , defaultDepth_(defaultDepth)
440 return defaultDepth_;
448 defaultDepth_ = value;
505 ONIXS_CMEMDH_EXPORTED
519 toStr(str, strategy);
533 SortedOrders::size_type
568 , consolidatedBooks_()
569 , updateNotification_(
610 return impliedBooks_;
617 return impliedBooks_;
625 return consolidatedBooks_;
632 return consolidatedBooks_;
641 return updateNotification_;
649 updateNotification_ = value;
664 ONIXS_CMEMDH_EXPORTED
678 toStr(str, settings);
BookUpdateNotification::Enum updateNotification() const
Encapsulates price level concept.
FixedDepthBookManagement< ImpliedBboTracking, MbpBookDepth > ImpliedBookManagement
Management and tracking parameters for implied books.
void threshold(const Decimal &threshold)
Defines value threshold for parameter being tracked.
#define ONIXS_CMEMDH_LTWT_CLASS
const ImpliedBookManagement & impliedBooks() const
Management and tracking parameters for implied books.
Int32 quantity() const
Quantify for the given price.
Defines tracking for BBO in direct books.
void maintain(bool value)
Forces Handler to maintain direct order books.
ImpliedBookManagement & impliedBooks()
Management and tracking parameters for implied books.
AnyDepthBookManagement< MboBboTracking, SortedOrders::size_type > MboBookManagement
Management and tracking parameters for MBO books.
const BboTracking & bboTracking() const
DirectBboTracking()
Initializes tracking.
BboThreshold & price()
Price tracking attributes.
BboThreshold & price()
Price tracking attributes.
const DirectBookManagement & directBooks() const
Management and tracking parameters for direct books.
const Decimal & threshold() const
Defines value threshold for parameter being tracked.
BookManagement()
Initializes instance with default values.
Defines tracking for BBO in MBO books.
void updateNotification(BookUpdateNotification::Enum value)
Defines the way Handler raises order book update event.
BaseBookManagement()
Initializes instance with default values.
bool enabled() const
Indicates whether tracking enabled at all.
DirectBookManagement & directBooks()
Management and tracking parameters for direct books.
Order as the member of the Market By Order (MBO) book.
const BboThreshold & numberOfOrders() const
Tracking for order quantity.
std::string toStr(const BookManagement &settings)
Serializes book management settings into string.
const BboThreshold & price() const
Price tracking attributes.
Int32 & numberOfOrders()
Updates total number of orders.
BboThreshold()
Initializes parameter tracking.
BaseBookManagement< ImpliedBboTracking > ConsolidatedBookManagement
Management and tracking parameters for consolidated books.
const Decimal & price() const
Order price.
Mantissa mantissa() const
Returns mantissa of given decimal.
bool enabled() const
Indicates whether tracking enabled at all.
bool exceeded(const DirectPriceLevel &previous, const DirectPriceLevel ¤t) const
Checks whether any of thresholds is exceeded.
Defines tracking for BBO in implied books.
const ConsolidatedBookManagement & consolidatedBooks() const
Management and tracking parameters for consolidated books.
void enabled(bool value)
Indicates whether tracking is enabled.
Encapsulates price level concept.
Defines tracking attributes for a particular BBO parameter.
#define ONIXS_CMEMDH_LTWT_STRUCT
BboThreshold & numberOfOrders()
Tracking for order quantity.
Defines book update notification strategies.
MboBookManagement & mboBooks()
Management and tracking parameters for direct books.
UInt8 MbpBookDepth
Market by price order book depth type.
const Decimal & price() const
A real number with floating exponent.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
bool exceeded(const ImpliedPriceLevel &previous, const ImpliedPriceLevel ¤t) const
Checks whether any of thresholds is exceeded.
bool enabled() const
Indicates whether tracking is enabled.
MboBboTracking()
Initializes tracking.
const BboThreshold & quantity() const
Quantity tracking attributes.
BboThreshold & quantity()
Quantity tracking attributes.
FixedDepthBookManagement< DirectBboTracking, MbpBookDepth > DirectBookManagement
Management and tracking parameters for direct books.
FixedDepthBookManagement(Depth defaultDepth=0)
Initializes instance with default values.
void defaultDepth(Depth value)
bool enabled() const
Indicates whether tracking enabled at all.
const MboBookManagement & mboBooks() const
Management and tracking parameters for direct books.
const BboThreshold & price() const
Price tracking attributes.
ConsolidatedBookManagement & consolidatedBooks()
Management and tracking parameters for consolidated books.
void throwBadBboThreshold()
Raises exception on invalid best bid/offer threshold value.
bool exceeded(const Order &previous, const Order ¤t) const
Checks whether any of thresholds is exceeded.
BboTracking & bboTracking()
Depth defaultDepth() const
Parameters affecting book management machinery.
AnyDepthBookManagement()
Initializes instance with default values.
ONIXS_CMEMDH_EXPORTED bool thresholdExceeded(const Decimal &, Int32, Int32)
ImpliedBboTracking()
Initializes tracking.
UInt32 Base
Integral type used as basement for constants.
#define ONIXS_CMEMDH_NAMESPACE_END